summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Wagner <info@gunibert.de>2021-10-21 22:09:28 +0200
committerGünther Wagner <info@gunibert.de>2021-10-21 22:09:28 +0200
commitc1cbf600818ab0c83d74b9705e1ef98dac35fc13 (patch)
tree5cb1239cfda645ff77f893481b025bb7895dcf09
parentdf22d245b362f904c1d391267fbfecae3f03e299 (diff)
downloadlibrest-c1cbf600818ab0c83d74b9705e1ef98dac35fc13.tar.gz
tests: fix potential null pointer dereference
-rw-r--r--tests/proxy-continuous.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/proxy-continuous.c b/tests/proxy-continuous.c
index 8f4b7a8..54c1bb6 100644
--- a/tests/proxy-continuous.c
+++ b/tests/proxy-continuous.c
@@ -88,7 +88,7 @@ _call_continuous_cb (RestProxyCall *call,
g_assert_no_error (error);
g_assert (REST_IS_PROXY (weak_object));
- if (buf == NULL && len == 0)
+ if (buf == NULL || len == 0)
g_assert (client_count == NUM_CHUNKS * SIZE_CHUNK);
for (i = 0; i < len; i++)