X-Git-Url: https://git.sommitrealweird.co.uk/quagga-debian.git/blobdiff_plain/6d99eb2938e976229cb50d848a1bc491532b54f9..refs/heads/master:/lib/memory.h?ds=inline diff --git a/lib/memory.h b/lib/memory.h index 5013529..9bef3fa 100644 --- a/lib/memory.h +++ b/lib/memory.h @@ -50,7 +50,7 @@ extern struct mlist mlists[]; #define XFREE(mtype, ptr) \ do { \ mtype_zfree (__FILE__, __LINE__, (mtype), (ptr)); \ - ptr = NULL; } \ + (ptr) = NULL; } \ while (0) #define XSTRDUP(mtype, str) \ mtype_zstrdup (__FILE__, __LINE__, (mtype), (str)) @@ -60,7 +60,7 @@ extern struct mlist mlists[]; #define XREALLOC(mtype, ptr, size) zrealloc ((mtype), (ptr), (size)) #define XFREE(mtype, ptr) do { \ zfree ((mtype), (ptr)); \ - ptr = NULL; } \ + (ptr) = NULL; } \ while (0) #define XSTRDUP(mtype, str) zstrdup ((mtype), (str)) #endif /* MEMORY_LOG */