projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83c71f7
)
pacrunner: Remove unitialised use of host_ret variable
author
Kalle Valo
<kalle.valo@canonical.com>
Mon, 7 Feb 2011 13:34:03 +0000
(15:34 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Tue, 8 Feb 2011 12:00:35 +0000
(13:00 +0100)
For some reason there's a null check for host_ret in parse_url(), which
is at that point is an uninitialised local variable. Just remove the check.
plugins/pacrunner.c:316:5: error: 'host_ret' may be used uninitialized in
this function
plugins/pacrunner.c
patch
|
blob
|
history
diff --git
a/plugins/pacrunner.c
b/plugins/pacrunner.c
index
44ac3c1
..
f914eeb
100644
(file)
--- a/
plugins/pacrunner.c
+++ b/
plugins/pacrunner.c
@@
-313,9
+313,6
@@
static char * parse_url(const char *url)
if (scheme == NULL)
return NULL;
- if (host_ret == NULL)
- return NULL;
-
host = strstr(scheme, "://");
if (host != NULL) {
*host = '\0';