]> granicus.if.org Git - php/commitdiff
Fixed bug #31796 (readline completion handler does not handle empty return
authorIlia Alshanetsky <iliaa@php.net>
Thu, 3 Feb 2005 22:45:36 +0000 (22:45 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 3 Feb 2005 22:45:36 +0000 (22:45 +0000)
values).

ext/readline/readline.c

index 0af0c42b294ca1c386df128c780151a1f692c880..a11646b29adabb281bb48bce771ee94929a51ae4 100644 (file)
@@ -377,7 +377,7 @@ static char *_readline_command_generator(char *text,int state)
                }
        }
 
-       return NULL;
+       return strdup("");
 }
 
 static zval *_readline_string_zval(const char *str)