[master] 5830d18 Remove unnecessary check

Guillaume Quintard guillaume at varnish-software.com
Mon Oct 26 11:52:39 CET 2015


commit 5830d189014d2625212ddc7b39b3d0c494d41c3e
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date:   Mon Oct 26 10:59:05 2015 +0100

    Remove unnecessary check

diff --git a/include/miniobj.h b/include/miniobj.h
index 3de4091..8b4f043 100644
--- a/include/miniobj.h
+++ b/include/miniobj.h
@@ -61,8 +61,7 @@
 
 #define REPLACE(ptr, val)						\
 	do {								\
-		if ((ptr) != NULL)					\
-			free(ptr);					\
+		free(ptr);						\
 		if ((val) != NULL) {					\
 			ptr = strdup(val);				\
 			AN((ptr));					\



More information about the varnish-commit mailing list