summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Crayne <chuck@thor.crayne.org>2008-06-04 16:05:14 -0700
committerCharles Crayne <chuck@thor.crayne.org>2008-06-04 16:05:14 -0700
commit0d3b89bc4ec6cc891b03efb84cb92a6eea0faaf3 (patch)
tree6ddfc64e8bd520654fff68f3999f125fe1af4771
parentcd3418016a2ff6e6de2c4d1c36d9ed8c489eceb2 (diff)
parent6609df912590a48e28c75e8144fd7187c323c23c (diff)
downloadnasm-0d3b89bc4ec6cc891b03efb84cb92a6eea0faaf3.tar.gz
Merge branch 'master' of git+ssh://ccrayne@repo.or.cz/srv/git/nasmnasm-2.03rc5
-rw-r--r--preproc.c4
-rw-r--r--version2
2 files changed, 2 insertions, 4 deletions
diff --git a/preproc.c b/preproc.c
index 40526729..475cb7e3 100644
--- a/preproc.c
+++ b/preproc.c
@@ -1840,7 +1840,7 @@ static int do_directive(Token * tline)
origline = tline;
skip_white_(tline);
- if (!tok_type_(tline, TOK_PREPROC_ID) ||
+ if (!tline || !tok_type_(tline, TOK_PREPROC_ID) ||
(tline->text[1] == '%' || tline->text[1] == '$'
|| tline->text[1] == '!'))
return NO_DIRECTIVE_FOUND;
@@ -2093,7 +2093,6 @@ static int do_directive(Token * tline)
if (!t || (t->type != TOK_STRING &&
t->type != TOK_INTERNAL_STRING)) {
error(ERR_NONFATAL, "`%%depend' expects a file name");
- free_tlist(t);
free_tlist(origline);
return DIRECTIVE_FOUND; /* but we did _something_ */
}
@@ -2110,7 +2109,6 @@ static int do_directive(Token * tline)
*deptail = sl;
deptail = &sl->next;
}
- free_tlist(t);
free_tlist(origline);
return DIRECTIVE_FOUND;
diff --git a/version b/version
index a1dfb3c8..044cceb2 100644
--- a/version
+++ b/version
@@ -1 +1 @@
-2.03rc4
+2.03rc5