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