minor changes to assignment to uninitialized variable
authorken <ken@mihrtec.com>
Fri, 16 Dec 2016 05:40:58 +0000 (21:40 -0800)
committerken <ken@mihrtec.com>
Fri, 16 Dec 2016 05:40:58 +0000 (21:40 -0800)
src/lexer.c

index 1550db9..97e5e98 100644 (file)
@@ -54,8 +54,6 @@ extern //scanner.c
 int         scanner_init(void);
 extern //scanner.c
 int         scanner(void);
-static inline
-int         dredge_current_depth(void);
 extern //bison
 YYSTYPE     yylval;
 static
@@ -221,7 +219,7 @@ int lexer_lexfilename
   /* Determine the filetype of str */
   len = u8_strlen(str);
     
-  ntok += lexer_lexstring(str, len);
+  ntok = lexer_lexstring(str, len);
   
   /* Pass back filepath as end of statment operator */
   filepath = u8_strdup(lexer_get_current_filepath());