2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>

* tracepoint.c (validate_actionline): Fix segv at EOF
This commit is contained in:
Michael Snyder 2004-01-07 19:14:45 +00:00
parent d9296b1825
commit 15255275af
2 changed files with 8 additions and 0 deletions

View file

@ -914,6 +914,10 @@ validate_actionline (char **line, struct tracepoint *t)
struct cleanup *old_chain = NULL;
char *p;
/* if EOF is typed, *line is NULL */
if (*line == NULL)
return END;
for (p = *line; isspace ((int) *p);)
p++;