summaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-04-26 11:57:29 +0200
committerJo-Philipp Wich <jo@mein.io>2021-04-26 11:57:56 +0200
commit7b287279d933e69168b99a643ecb91631fd4f992 (patch)
tree3f9b6a42bba881dd88ee067ae19b00ad463af833 /main.c
parent4cf897c200e72ba5d8823af3fcd515ac92651b99 (diff)
main: fix ineffective EOF check in parse()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index e762312..618d5e4 100644
--- a/main.c
+++ b/main.c
@@ -99,8 +99,8 @@ parse(uc_parse_config *config, uc_source *src,
uc_value_t *globals = NULL;
uc_function_t *entry;
uc_vm vm = {};
- char c, c2, *err;
- int rc = 0;
+ int c, c2, rc = 0;
+ char *err;
uc_vm_init(&vm, config);