diff options
author | dequis <dx@dxzone.com.ar> | 2015-04-11 15:09:49 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-04-11 15:09:53 -0300 |
commit | 9890daca797b31d34d97d953c512378aabe3d51f (patch) | |
tree | 902f884cdf223229e440d9b05651e225b876ad39 /src/fe-common/core | |
parent | ef0877f4849a73ba43e886a9faafb321d3559e43 (diff) | |
download | irssi-9890daca797b31d34d97d953c512378aabe3d51f.zip |
Handle nulls properly in the g_strcmp0() for glib<2.16
I wrote some tests to compare the behavior but I don't know where to put
them, so i'm including them here:
assert(g_strcmp0("a", "b") == -1);
assert(g_strcmp0(NULL, "a") == -1);
assert(g_strcmp0("a", NULL) == 1);
assert(g_strcmp0("b", "a") == 1);
assert(g_strcmp0("a", "a") == 0);
assert(g_strcmp0(NULL, NULL) == 0);
Diffstat (limited to 'src/fe-common/core')
0 files changed, 0 insertions, 0 deletions