summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index bd53e9e..83d4acd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -141,8 +141,7 @@ struct ast_node* parse_primary(struct token* tokens, struct ast_node* nodes) {
}
}
-struct ast_node* parse_command(struct token* tokens, struct ast_node* nodes)
-{
+struct ast_node* parse_command(struct token* tokens, struct ast_node* nodes) {
struct ast_node* cur_node = &nodes[0];
struct token* cur_token = &tokens[0];
switch(cur_token->type) {
@@ -242,7 +241,7 @@ void run(struct ast_node* root) {
process_commands = FALSE;
} else if (cur_node.token->type == TOKEN_DUMP_MEMORY) {
u64 addr = eval_number(cur_node.right);
- u8 buf[16U] = {};
+ u8 buf[16U] = { 0 };
size_t b_read = 0U;
HRESULT hr = ReadProcessMemory(