aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-10-02 23:27:26 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-10-02 23:27:26 +0200
commita9ec8b055f2e49258eafe3a6e5a497a9db6d6184 (patch)
treeb8516a4dd7d00711ca960948a39ced1a5c57aadb /include
parent5f69d494adef61c34dd16d4679014bb1ffdc4acb (diff)
downloadlibssh-a9ec8b055f2e49258eafe3a6e5a497a9db6d6184.tar.gz
libssh-a9ec8b055f2e49258eafe3a6e5a497a9db6d6184.tar.xz
libssh-a9ec8b055f2e49258eafe3a6e5a497a9db6d6184.zip
Fix warnings on testcases
Diffstat (limited to 'include')
-rw-r--r--include/libssh/callbacks.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libssh/callbacks.h b/include/libssh/callbacks.h
index 0e18b81f..65d78ce6 100644
--- a/include/libssh/callbacks.h
+++ b/include/libssh/callbacks.h
@@ -191,7 +191,7 @@ typedef struct ssh_socket_callbacks_struct *ssh_socket_callbacks;
* @returns nonzero if callback can be called
*/
#define ssh_callbacks_exists(p,c) (\
- (p) && ( (char *)&((p)-> c) < (char *)(p) + (p)->size ) && \
+ (p != NULL) && ( (char *)&((p)-> c) < (char *)(p) + (p)->size ) && \
((p)-> c != NULL) \
)