summaryrefslogtreecommitdiff
blob: 9f6ba964800b7b969a5b0714b0531d1a152c2952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From 80d9d1b3003ff79ddee26e9fd09eb1b746b6bf5c Mon Sep 17 00:00:00 2001
From: Sebastian Pipping <sebastian@pipping.org>
Date: Sat, 4 May 2013 00:14:32 +0200
Subject: [PATCH] Fix GCC warnings
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

httrack.c: In function ‘htsshow_loop’:
httrack.c:446:21: warning: the address of ‘tempo’ will always evaluate as ‘true’
httrack.c:480:19: warning: the address of ‘s’ will always evaluate as ‘true’
httrack.c:484:19: warning: the address of ‘s’ will always evaluate as ‘true’
---
 src/httrack.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/httrack.h b/src/httrack.h
index 8b049a1..90ca9d5 100644
--- a/src/httrack.h
+++ b/src/httrack.h
@@ -129,7 +129,7 @@ extern FILE* ioinfo;
 } while(0)
 #define strncatbuff(A, B, N) do { \
   assertf( (A) != NULL ); \
-  if ( ! (B) ) { assertf( 0 ); } \
+  if ( (B) == NULL ) { assertf( 0 ); } \
   if (htsMemoryFastXfr) { \
     if (sizeof(A) != sizeof(char*)) { \
       (A)[sizeof(A) - 1] = '\0'; \
@@ -158,7 +158,7 @@ extern FILE* ioinfo;
 } while(0)
 #define strcpybuff(A, B) do { \
   assertf( (A) != NULL ); \
-  if ( ! (B) ) { assertf( 0 ); } \
+  if ( (B) == NULL ) { assertf( 0 ); } \
   if (htsMemoryFastXfr) { \
     if (sizeof(A) != sizeof(char*)) { \
       (A)[sizeof(A) - 1] = '\0'; \
-- 
1.8.1.5