calling add_history. [RT #34842]
+3657. [port] Some readline clones don't accept NULL pointers when
+ calling add_history. [RT #34842]
+
3656. [bug] Treat a all zero netmask as invalid when generating
the localnets acl. [RT #34687]
if (interactive) {
#ifdef HAVE_READLINE
ptr = readline("> ");
- add_history(ptr);
+ if (ptr != NULL)
+ add_history(ptr);
#else
fputs("> ", stderr);
fflush(stderr);
if (interactive) {
#ifdef HAVE_READLINE
cmdline = readline("> ");
- add_history(cmdline);
+ if (cmdline != NULL)
+ add_history(cmdline);
#else
fprintf(stdout, "> ");
fflush(stdout);