summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-03-30 08:09:37 +1000
committerRan Benita <ran@unusedvar.com>2021-03-30 01:37:55 +0300
commit127f8c976d93dc27d059bde2a250815c29302c2e (patch)
tree2af3e86a45e2ab9bdb9b09f3348943a5c568d1f2 /src
parentd172652753b2d13587e5b61199e3113ceae55e68 (diff)
downloadxorg-lib-libxkbcommon-127f8c976d93dc27d059bde2a250815c29302c2e.tar.gz
utils: assert on streq for NULL pointers
We have streq_null for that purpose Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index cd3e9b1..7557dab 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -66,6 +66,7 @@ istrncmp(const char *a, const char *b, size_t n);
static inline bool
streq(const char *s1, const char *s2)
{
+ assert(s1 && s2);
return strcmp(s1, s2) == 0;
}