From a9ec8b055f2e49258eafe3a6e5a497a9db6d6184 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sat, 2 Oct 2010 23:27:26 +0200 Subject: Fix warnings on testcases --- include/libssh/callbacks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libssh/callbacks.h b/include/libssh/callbacks.h index 0e18b81..65d78ce 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) \ ) -- cgit