diff options
Diffstat (limited to 'tests/libtest/lib507.c')
-rw-r--r-- | tests/libtest/lib507.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/libtest/lib507.c b/tests/libtest/lib507.c index f45169496..b16c23368 100644 --- a/tests/libtest/lib507.c +++ b/tests/libtest/lib507.c @@ -39,9 +39,10 @@ int test(char *URL) } } msg = curl_multi_info_read(multi, &still_running); - /* this should now contain a result code from the easy handle, - get it */ - i = msg->data.result; + if(msg) + /* this should now contain a result code from the easy handle, + get it */ + i = msg->data.result; curl_multi_cleanup(multi); curl_easy_cleanup(curls); |