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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user