diff --git a/src/main.c b/src/main.c
index 25fcec5199f3a401d37d9aeaa632b2dddb89239f..9551cfe2684d36f7476742185b6823a88a9364da 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2904,7 +2904,7 @@ operate(struct Configurable *config, int argc, char *argv[])
   }
 
   /* loop through the list of given URLs */
-  while(urlnode && !res) {
+  while(urlnode) {
     char *dourl;
 
     /* get the full URL (it might be NULL) */