1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 01:03:14 +02:00

tests: check that function string_strndup returns NULL if the given string is NULL

This commit is contained in:
Sébastien Helleu
2015-03-22 11:14:12 +01:00
parent 8bcf31950e
commit 8b056d7d24
+1 -1
View File
@@ -111,7 +111,7 @@ TEST(String, Duplicate)
const char *str_test = "test";
char *str;
str = string_strndup (NULL, 0);
POINTERS_EQUAL(NULL, string_strndup (NULL, 0));
str = string_strndup (str_test, 0);
CHECK(str);