projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aee583
)
Avoid uninitialized use of uri warning.
author
Daniel Carl
<danielcarl@gmx.de>
Wed, 15 Nov 2017 13:03:52 +0000
(14:03 +0100)
committer
Daniel Carl
<danielcarl@gmx.de>
Wed, 15 Nov 2017 13:03:52 +0000
(14:03 +0100)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
6a6c5a6
..
f71442d
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-1250,7
+1250,7
@@
static void on_webview_load_changed(WebKitWebView *webview,
WebKitLoadEvent event, Client *c)
{
GTlsCertificateFlags tlsflags;
- char *uri;
+ char *uri
= NULL
;
switch (event) {
case WEBKIT_LOAD_STARTED:
@@
-1319,7
+1319,9
@@
static void on_webview_load_changed(WebKitWebView *webview,
break;
}
- g_free(uri);
+ if (uri) {
+ g_free(uri);
+ }
}
/**