[gtranslator] Fix pointer comparison with zero char



commit 355069c5735cc2d8c35f557643e646736fc6e88c
Author: Daniel GarcĂ­a Moreno <danigm wadobo com>
Date:   Tue Sep 11 20:49:27 2018 +0200

    Fix pointer comparison with zero char

 src/gtr-header.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gtr-header.c b/src/gtr-header.c
index 64e91448..858344a8 100644
--- a/src/gtr-header.c
+++ b/src/gtr-header.c
@@ -117,7 +117,7 @@ parse_nplurals (GtrHeader * header)
       while (*pointer != '\0' && *pointer != '=')
         pointer++;
 
-      if (pointer != '\0')
+      if (*pointer != '\0')
         {
           pointer++;
           while (*pointer != '\0' && *pointer == ' ')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]