]> git.draconx.ca Git - gob-dx.git/blobdiff - src/lexer.l
Release 2.0.15
[gob-dx.git] / src / lexer.l
index 971b121886e3833837700dcd9c7a44bff47a9722..b3b2d596c3fde0348f0ae55534c88e8bdab2d78f 100644 (file)
@@ -197,9 +197,11 @@ REJECT;
                file++;
                p = strchr(file,'"');
                if(!p) p = strchr(file,'>');
-               *p = '\0';
-               include_files = g_list_prepend(include_files,g_strdup(file));
-               g_free(str);
+               if (p != NULL) {
+                       *p = '\0';
+                       include_files = g_list_prepend(include_files,g_strdup(file));
+                       g_free(str);
+               }
        }
        REJECT;
 }