]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix missing part of patch 8135b9d21d -- readline truncate fix
authorKern Sibbald <kern@sibbald.com>
Tue, 25 Feb 2020 18:30:31 +0000 (19:30 +0100)
committerKern Sibbald <kern@sibbald.com>
Tue, 25 Feb 2020 20:16:21 +0000 (21:16 +0100)
bacula/src/console/console.c

index 45c9a9e796aa848b66a2d923eba9357ca114db82..f70ee8500fba0cf87981da15d68ea37fd22ea253 100644 (file)
@@ -935,6 +935,10 @@ void trapctlc()
    signal(SIGINT, sigintcatcher);
 }
 
+#ifdef HAVE_READLINE
+static int histfile_size=0;
+#endif
+
 static int console_update_history(const char *histfile)
 {
    int ret=0;