Package: bossa / 1.3~20120408-5.1

fix-FTBFS-GCC7.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Compare the data, not the pointer.
Author: Scott Shumate <scott@esquilo.io>
Bug: https://github.com/shumatech/BOSSA/issues/37
Bug-Debian: https://bugs.debian.org/853338
Origin: upstream, https://github.com/shumatech/BOSSA/commit/3ace00ee9a5a1372c321f4b97b941eb7c040ef80.patch
Last-Update: 2017-09-30

--- bossa-1.3~20120408.orig/src/Command.cpp
+++ bossa-1.3~20120408/src/Command.cpp
@@ -707,7 +707,7 @@ CommandMwb::invoke(char* argv[], int arg
             char* input = readline("? ");
             if (!input)
                 return;
-            if (input == '\0' ||
+            if (*input == '\0' ||
                 !argUint32(input, &value))
             {
                 free(input);
@@ -810,7 +810,7 @@ CommandMww::invoke(char* argv[], int arg
             char* input = readline("? ");
             if (!input)
                 return;
-            if (input == '\0' ||
+            if (*input == '\0' ||
                 !argUint32(input, &value))
             {
                 free(input);