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