Changeset: d7f266b38e8b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d7f266b38e8b
Modified Files:
        gdk/gdk_atoms.h
Branch: Jun2020
Log Message:

Tighten strNil check.


diffs (12 lines):

diff --git a/gdk/gdk_atoms.h b/gdk/gdk_atoms.h
--- a/gdk/gdk_atoms.h
+++ b/gdk/gdk_atoms.h
@@ -396,7 +396,7 @@ strEQ(const char *l, const char *r)
 static inline bool __attribute__((__pure__))
 strNil(const char *s)
 {
-       return s == NULL || *s == '\200';
+       return s == NULL || (s[0] == '\200' && s[1] == '\0');
 }
 
 static inline size_t __attribute__((__pure__))
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to