aboutsummaryrefslogtreecommitdiff
path: root/src/hci/readline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hci/readline.c')
-rw-r--r--src/hci/readline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hci/readline.c b/src/hci/readline.c
index 5b46413..3c5f924 100644
--- a/src/hci/readline.c
+++ b/src/hci/readline.c
@@ -278,6 +278,7 @@ int readline_history ( const char *prompt, const char *prefill,
/* Prefill string */
if ( ( rc = replace_string ( &string, prefill ) ) != 0 )
goto error;
+ assert ( *line != NULL );
sync_console ( &string );
while ( 1 ) {