Commit 63cc57232cebab60ad193731582e24e83ea5b3b9

Matt Burke 2015-09-24T09:13:05

Don't null-check

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/transports/smart.c b/src/transports/smart.c
index 1ff39b4..fc7630c 100644
--- a/src/transports/smart.c
+++ b/src/transports/smart.c
@@ -81,9 +81,6 @@ bool is_valid_custom_header(const char *custom_header)
 	int name_len;
 	unsigned long i;
 
-	if (custom_header == NULL)
-		return true;
-
 	// Disallow \r and \n
 	c = strchr(custom_header, '\r');
 	if (c != NULL)