do not "quit" when we hit the end of parse streams

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1890 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 14 years ago
parent e94905a895
commit 58c99e942f

@ -4,6 +4,9 @@
* src/cmd/cmd_debug.c: Add a completion handler.
* src/global/parse.c (urj_parse_stream): Do not call "quit" when we hit the
end of a stream. Simply return success so we can handle nested cases.
2011-02-21 Mike Frysinger <vapier@gentoo.org>
* data/Makefile.am (nobase_dist_pkgdata_DATA): Add missing analog/bfin/bfin.

@ -231,9 +231,11 @@ urj_parse_stream (urj_log_level_t ll, urj_chain_t *chain, FILE *f)
break;
}
/* Make sure inputline is big enough ... don't rely on getline */
inputline = realloc (inputline, 5);
sprintf (inputline, "quit");
/* If we hit the end of the file, just return. Do not
* "quit" or fail as this will break things like nested
* file includes. */
go = URJ_STATUS_OK;
break;
}
else
{

Loading…
Cancel
Save