projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ecc7a9c
)
Minor simplification for get_last_url()
author
Fabian Keil
<fk@fabiankeil.de>
Sun, 30 Oct 2011 16:17:21 +0000
(16:17 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 30 Oct 2011 16:17:21 +0000
(16:17 +0000)
filters.c
patch
|
blob
|
history
diff --git
a/filters.c
b/filters.c
index
54c2c6f
..
7ce9858
100644
(file)
--- a/
filters.c
+++ b/
filters.c
@@
-1,4
+1,4
@@
-const char filters_rcs[] = "$Id: filters.c,v 1.14
8 2011/10/30 16:16
:07 fabiankeil Exp $";
+const char filters_rcs[] = "$Id: filters.c,v 1.14
9 2011/10/30 16:17
:07 fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/filters.c,v $
/*********************************************************************
*
* 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, "?&");
}
}
token = strtok(NULL, "?&");
}
-
- if (found)
- {
- freez(subject);
- return found;
- }
-
freez(subject);
freez(subject);
- return NULL;
+
+ return found;
}
/* Else, just look for a URL inside this one, without decoding anything. */
}
/* Else, just look for a URL inside this one, without decoding anything. */