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

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