]> tinc-vpn.org Git - tinc/blobdiff - src/xalloc.h
Fix warnings from the Clang static analyzer.
[tinc] / src / xalloc.h
index 493af5c0f245b1ac7f3b545d3c0bbb0ea8010291..ac24ebc6b424a0b0f504de5a40525c36f217e4f2 100644 (file)
@@ -53,7 +53,7 @@ static inline void *xrealloc(void *p, size_t n) {
        return p;
 }
 
-static inline char *xstrdup(const char *s) __attribute__((__malloc__));
+static inline char *xstrdup(const char *s) __attribute__((__malloc__, __nonnull__));
 static inline char *xstrdup(const char *s) {
        char *p = strdup(s);