aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-10-11 23:15:45 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-10-11 23:15:45 +0300
commit24a87761b4398c48d554ae44861b33a98c4c39e4 (patch)
treee2c719f29aa2f48afde056c1b1a508738d312520 /src
parent17372c73a7605c1a2815c7389259cab3b8443f3f (diff)
downloadcflow-24a87761b4398c48d554ae44861b33a98c4c39e4.tar.gz
cflow-24a87761b4398c48d554ae44861b33a98c4c39e4.tar.bz2
Final cleanup before the release.release-1_4
* NEWS: Update. * README: Update. * doc/cflow.texi: Update. * src/main.c (symbol_override): pass allocated argument to install. * src/parser.c (yyparse): Return 0.
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
-rw-r--r--src/parser.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index e81c537..6c51033 100644
--- a/src/main.c
+++ b/src/main.c
@@ -270,7 +270,7 @@ symbol_override(const char *str)
if (ptr[1] == '=') {
Symbol *alias = lookup(ptr+2);
if (!alias) {
- alias = install(ptr+2, INSTALL_OVERWRITE);
+ alias = install(xstrdup(ptr+2), INSTALL_OVERWRITE);
alias->type = SymToken;
alias->token_type = 0;
alias->source = NULL;
diff --git a/src/parser.c b/src/parser.c
index b933860..176d9f2 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -267,7 +267,7 @@ save_token(TOKSTK *tokptr)
}
}
-static Stackpos start_pos; /* Start position in stack for saving tokens *///FIXME: REMOVE
+static Stackpos start_pos; /* Start position in stack for saving tokens */
static int save_end; /* Stack position up to which the tokens are saved */
void
@@ -387,7 +387,7 @@ yyparse()
}
cleanup_stack();
}
- /*NOTREACHED*/
+ return 0;
}
static int

Return to:

Send suggestions and report system problems to the System administrator.