tstellar / rpms / aspell

Forked from rpms/aspell 3 years ago
Clone
137cc1a
commit 8089fa02122fed0a6394eba14bbedcb1d18e2384
137cc1a
Author: Kevin Atkinson <kevina@gnu.org>
137cc1a
Date:   Thu Dec 29 00:50:31 2016 -0500
137cc1a
137cc1a
    Compile Fixes for GCC 7.
137cc1a
    
137cc1a
    Closes #519.
137cc1a
137cc1a
diff --git a/modules/filter/tex.cpp b/modules/filter/tex.cpp
137cc1a
index a979539..19ab63c 100644
137cc1a
--- a/modules/filter/tex.cpp
137cc1a
+++ b/modules/filter/tex.cpp
137cc1a
@@ -174,7 +174,7 @@ namespace {
137cc1a
 
137cc1a
     if (c == '{') {
137cc1a
 
137cc1a
-      if (top.in_what == Parm || top.in_what == Opt || top.do_check == '\0')
137cc1a
+      if (top.in_what == Parm || top.in_what == Opt || *top.do_check == '\0')
137cc1a
 	push_command(Parm);
137cc1a
 
137cc1a
       top.in_what = Parm;
137cc1a
diff --git a/prog/check_funs.cpp b/prog/check_funs.cpp
137cc1a
index db54f3d..89ee09d 100644
137cc1a
--- a/prog/check_funs.cpp
137cc1a
+++ b/prog/check_funs.cpp
137cc1a
@@ -647,7 +647,7 @@ static void print_truncate(FILE * out, const char * word, int width) {
137cc1a
     }
137cc1a
   }
137cc1a
   if (i == width-1) {
137cc1a
-    if (word == '\0')
137cc1a
+    if (*word == '\0')
137cc1a
       put(out,' ');
137cc1a
     else if (word[len] == '\0')
137cc1a
       put(out, word, len);