summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fe89881)
raw | patch | inline | side by side (parent: fe89881)
author | Florian Forster <octo@huhu.verplant.org> | |
Sat, 8 Jan 2011 08:36:08 +0000 (09:36 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sat, 8 Jan 2011 08:36:08 +0000 (09:36 +0100) |
Some old versions of GCC don't know it and throw a warning.
src/libcollectdclient/client.c | patch | blob | history |
index 9ee02c9ff6ba9bc92a5d11ea2cef5d52ba1bf889..3eb0d05536721a7d5b154ddf505c123321ea9fcf 100644 (file)
return (0);
} /* }}} int lcc_set_errno */
-__attribute__((nonnull (1, 2)))
static char *lcc_strescape (char *dest, const char *src, size_t dest_size) /* {{{ */
{
size_t dest_pos;
size_t src_pos;
+ if ((dest == NULL) || (src == NULL))
+ return (NULL);
+
dest_pos = 0;
src_pos = 0;