diff options
author | rvalieris <rvalieris@users.noreply.github.com> | 2021-10-22 07:51:07 -0300 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2021-11-03 09:03:03 +0100 |
commit | 39ff5699d60454835f0302793128821163767377 (patch) | |
tree | d694a91195d41714f0184c657ec6409e7725cb51 | |
parent | d854dc597bd198d9f9c7a88c1127fc0d08c7ea5e (diff) | |
download | i3-39ff5699d60454835f0302793128821163767377.tar.gz i3-39ff5699d60454835f0302793128821163767377.zip |
check for both arguments NULL on strings_differ
-rw-r--r-- | i3bar/src/ipc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/i3bar/src/ipc.c b/i3bar/src/ipc.c index 0e12eafa..06ddf9b5 100644 --- a/i3bar/src/ipc.c +++ b/i3bar/src/ipc.c @@ -173,6 +173,9 @@ static bool strings_differ(char *a, char *b) { if (a_null != b_null) { return true; } + if (a_null && b_null) { + return false; + } return strcmp(a, b) != 0; } |