[4.1] b5d305e Remove unnecessary check

Lasse Karstensen lkarsten at varnish-software.com
Thu Jan 14 15:15:03 CET 2016


commit b5d305ee904400fd9b412dfafc05b84fa6a46f56
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