[SCM] Gnuplot. Interactive plotting program branch, master, updated. debian/4.6.0-1-8-g817a4ec

Anton Gladky gladky.anton at gmail.com
Fri Mar 30 19:11:17 UTC 2012


The following commit has been merged in the master branch:
commit 817a4ec90ae6eff47ba769f21787e29c4f148e8b
Author: Anton Gladky <gladky.anton at gmail.com>
Date:   Fri Mar 30 21:11:11 2012 +0200

    Fix "Segmentation fault" after entering any command. (Closes: #665832)

diff --git a/debian/patches/07_fix_segm_fault.diff b/debian/patches/07_fix_segm_fault.diff
new file mode 100644
index 0000000..4d8f28f
--- /dev/null
+++ b/debian/patches/07_fix_segm_fault.diff
@@ -0,0 +1,22 @@
+Description: Fix "Segmentation fault" after entering any command.
+Author: Anton Gladky <gladky.anton at gmail.com>
+Bug-Debian: http://bugs.debian.org/665832
+Bug-Debian: http://bugs.debian.org/665432
+Last-Update: 2012-03-30
+
+--- a/src/command.c
++++ b/src/command.c
+@@ -2688,9 +2688,10 @@
+ #  elif defined(HAVE_LIBEDITLINE)
+ 	    /* deleting history entries does not work, so suppress adjacent 
+ 	    duplicates only */
+-	    while (previous_history());
+-	    if (strcmp(current_history()->line, line) != 0)
+-		add_history(line);
++      
++	    if (previous_history() && strcmp(current_history()->line, line) != 0) {
++        add_history(line);
++      }
+ #  else /* builtin readline */
+ 	    add_history(line);
+ #  endif
diff --git a/debian/patches/series b/debian/patches/series
index 09f69ed..0da7fce 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 04_fix_libexecdir.diff
 05_default_gd_font.diff
 06_fix_format_not_a_string.diff
+07_fix_segm_fault.diff

-- 
Gnuplot. Interactive plotting program



More information about the debian-science-commits mailing list