diff options
author | rvalieris <rvalieris@users.noreply.github.com> | 2021-10-22 07:51:07 -0300 |
---|---|---|
committer | rvalieris <rvalieris@users.noreply.github.com> | 2021-10-22 07:51:07 -0300 |
commit | 64021b61434b8fbff2ded1f6f3e40ac254410be6 (patch) | |
tree | e2ba6ce44ed05577507ff82597e10d551b67f8c8 /i3bar | |
parent | e938cae8a03b084857e8c886b6717fa42f093199 (diff) | |
download | i3-64021b61434b8fbff2ded1f6f3e40ac254410be6.tar.gz i3-64021b61434b8fbff2ded1f6f3e40ac254410be6.zip |
check for both arguments NULL on strings_differ
Diffstat (limited to 'i3bar')
-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; } |