aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 23b0471..2e6011b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -21,16 +21,14 @@ main(int argc, char **argv)
struct {
char *p;
size_t len;
- } file = {
- .p = readfile(argv[1], &file.len),
- };
+ } file;
+ file.p = readfile(argv[1], &file.len);
struct {
struct lexeme *p;
size_t len;
- } toks = {
- .p = lexstring(file.p, file.len, &toks.len),
- };
+ } toks;
+ toks.p = lexstring(file.p, file.len, &toks.len);
#if DEBUG
free(file.p);