Don't add blank lines to readline history.

This commit is contained in:
W. Eric Norum
2003-02-20 16:25:46 +00:00
parent 0207edfdbd
commit 077fe6e1f3

View File

@@ -163,7 +163,7 @@ epicsReadline (const char *prompt, void *context)
line[linelen] = '\0';
}
readlineContext->line = line;
if (line && line[0] != '#')
if (line && line[0] != '\0')
add_history (line);
return line;
}