From: Fabian Keil Date: Sun, 30 Oct 2011 16:17:21 +0000 (+0000) Subject: Minor simplification for get_last_url() X-Git-Tag: v_3_0_18~63 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=88e1c22e80961cb46e066302a5495b188eb0fc87;p=privoxy.git Minor simplification for get_last_url() --- diff --git a/filters.c b/filters.c index 54c2c6f4..7ce98587 100644 --- a/filters.c +++ b/filters.c @@ -1,4 +1,4 @@ -const char filters_rcs[] = "$Id: filters.c,v 1.148 2011/10/30 16:16:07 fabiankeil Exp $"; +const char filters_rcs[] = "$Id: filters.c,v 1.149 2011/10/30 16:17:07 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.c,v $ @@ -1140,15 +1140,9 @@ char *get_last_url(char *subject, const char *redirect_mode) } token = strtok(NULL, "?&"); } - - if (found) - { - freez(subject); - return found; - } - freez(subject); - return NULL; + + return found; } /* Else, just look for a URL inside this one, without decoding anything. */