]> granicus.if.org Git - curl/commitdiff
curl_multi_add_handle: next is already NULL
authorAnders Bakken <agbakken@gmail.com>
Wed, 29 Apr 2015 22:39:54 +0000 (15:39 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 30 Apr 2015 06:21:34 +0000 (08:21 +0200)
lib/multi.c

index 235b5b457fdfd23200547e84c8ddf9ea7e2390ae..f483f2d96748bb108c0028c901b2c81a01f690c4 100644 (file)
@@ -427,8 +427,7 @@ CURLMcode curl_multi_add_handle(CURLM *multi_handle,
     multi->easylp = data; /* the new last node */
   }
   else {
-    /* first node, make both prev and next be NULL! */
-    data->next = NULL;
+    /* first node, make prev NULL! */
     data->prev = NULL;
     multi->easylp = multi->easyp = data; /* both first and last */
   }