commit bc6f440b6ce83d32b700914fa333f8f2ab27bfad parent 9bb3c520e3bf10d4004f2ccc872f2871a58a6339 Author: Christian Grothoff <christian@grothoff.org> Date: Thu, 5 Dec 2013 20:40:48 +0000 -safer, found by clang Diffstat:
| M | src/transport/gnunet-transport.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c @@ -487,7 +487,7 @@ transmit_data (void *cls, size_t size, void *buf) { struct GNUNET_MessageHeader *m = buf; - if ((NULL == buf) && (0 == size)) + if ((NULL == buf) || (0 == size)) { th = NULL; return 0;