]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - lib/readline/history.c
bash-4.3-beta overlay
[thirdparty/bash.git] / lib / readline / history.c
index cd3e93926e27e2f8cec3b25db9ff2cd6cc0085ff..1181e7ccf83bcb98dc0b801cd25fd3fd584cd555 100644 (file)
@@ -318,7 +318,7 @@ add_history_time (string)
 {
   HIST_ENTRY *hs;
 
-  if (string == 0)
+  if (string == 0 || history_length < 1)
     return;
   hs = the_history[history_length - 1];
   FREE (hs->timestamp);