summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c9f0a65)
raw | patch | inline | side by side (parent: c9f0a65)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 10:08:13 +0000 (12:08 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 10:08:13 +0000 (12:08 +0200) |
[src/curl.c:548] -> [src/curl.c:546]: (warning) Either the condition 'prev!=0' is redundant or there is possible null pointer dereference: prev.
src/curl.c | patch | blob | history |
diff --git a/src/curl.c b/src/curl.c
index 2ed09225290146418215b4a3b801c5da5545149a..310561c9931df7b8de4942f2f472aae31cc08b49 100644 (file)
--- a/src/curl.c
+++ b/src/curl.c
web_page_t *prev;
prev = pages_g;
- while ((prev != NULL) && (prev->next != NULL))
+ while (prev->next != NULL)
prev = prev->next;
prev->next = page;
}