svn commit: r278414 - head/lib/libedit

Baptiste Daroussin bapt at FreeBSD.org
Sun Feb 8 22:24:19 UTC 2015


Author: bapt
Date: Sun Feb  8 22:24:18 2015
New Revision: 278414
URL: https://svnweb.freebsd.org/changeset/base/278414

Log:
  Reapply r255891

Modified:
  head/lib/libedit/readline.c

Modified: head/lib/libedit/readline.c
==============================================================================
--- head/lib/libedit/readline.c	Sun Feb  8 22:24:03 2015	(r278413)
+++ head/lib/libedit/readline.c	Sun Feb  8 22:24:18 2015	(r278414)
@@ -395,6 +395,9 @@ readline(const char *p)
 	char *buf;
 	static int used_event_hook;
 
+	if (line == NULL)
+		return 0;
+
 	if (e == NULL || h == NULL)
 		rl_initialize();
 


More information about the svn-src-all mailing list