index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2008-04-19 12:51:28 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-04-19 15:59:40 -0500 |
commit | 64e1dd64a4512a5faa34e6007e64314569593522 (patch) | |
tree | 00aa88e97f65bf36622bb8566b3a11aaeba4da20 /lib/libalpm | |
parent | bf84c232664fdce4861a2b94ce895c2b160b355a (diff) |
-rw-r--r-- | lib/libalpm/util.h | 2 |
diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index 74b4f981..6c7a05e9 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -47,7 +47,7 @@ /* This strdup macro is NULL safe- copying NULL will yield NULL */ #define STRDUP(r, s, action) do { if(s != NULL) { r = strdup(s); if(r == NULL) { ALLOC_FAIL(strlen(s)); action; } } else { r = NULL; } } while(0) -#define FREE(p) do { if(p) { free(p); p = NULL; } } while(0) +#define FREE(p) do { free(p); p = NULL; } while(0) #define ASSERT(cond, action) do { if(!(cond)) { action; } } while(0) |