projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix warnings from the Clang static analyzer.
[tinc]
/
src
/
xalloc.h
diff --git
a/src/xalloc.h
b/src/xalloc.h
index
493af5c
..
ac24ebc
100644
(file)
--- a/
src/xalloc.h
+++ b/
src/xalloc.h
@@
-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);