Blame SOURCES/0006-tcpslice-don-t-test-the-pointer-but-pointee-for-NULL.patch

1f5cfb
From e159008d2f126d92112858269fb6b2fbca63ffc2 Mon Sep 17 00:00:00 2001
1f5cfb
From: rpm-build <rpm-build>
1f5cfb
Date: Mon, 20 Oct 2014 15:19:44 +0200
1f5cfb
Subject: [PATCH 6/8] tcpslice: don't test the pointer but pointee for NULL
1f5cfb
1f5cfb
---
1f5cfb
 tcpslice-1.2a3/tcpslice.c | 4 +++-
1f5cfb
 1 file changed, 3 insertions(+), 1 deletion(-)
1f5cfb
1f5cfb
diff --git a/tcpslice-1.2a3/tcpslice.c b/tcpslice-1.2a3/tcpslice.c
1f5cfb
index 895e54f..a91439b 100644
1f5cfb
--- a/tcpslice-1.2a3/tcpslice.c
1f5cfb
+++ b/tcpslice-1.2a3/tcpslice.c
1f5cfb
@@ -402,7 +402,9 @@ fill_tm(char *time_string, int is_delta, struct tm *t, time_t *usecs_addr)
1f5cfb
 
1f5cfb
 		while (isdigit(*t_stop))
1f5cfb
 			++t_stop;
1f5cfb
-		if (! t_stop)
1f5cfb
+
1f5cfb
+                if (!(*t_stop))
1f5cfb
+                        /* we've reached end of string -> bad date format */
1f5cfb
 			error("bad date format %s, problem starting at %s",
1f5cfb
 			      time_string, t_start);
1f5cfb
 
1f5cfb
-- 
1f5cfb
2.9.3
1f5cfb