From 31b97c67a4fcf40c63cda8b639f3976ccfc8bf0a Mon Sep 17 00:00:00 2001 From: Kalle Vahlman Date: Tue, 5 May 2009 09:56:16 +0300 Subject: [PATCH] [tests] Fix compilation of jscorebus tester --- tests/jscorebus-webkit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/jscorebus-webkit.c b/tests/jscorebus-webkit.c index 866e9ba..9228b84 100644 --- a/tests/jscorebus-webkit.c +++ b/tests/jscorebus-webkit.c @@ -101,11 +101,12 @@ int main(int argc, char *argv[]) { webkit_web_view_open(WEBKIT_WEB_VIEW(view), argv[1]); } else { + gchar *url = NULL; if (g_path_is_absolute(argv[1])) { - gchar *url = g_strjoin("", "file://", argv[1], NULL); + url = g_strjoin("", "file://", argv[1], NULL); } else { gchar *pwd = g_get_current_dir(); - gchar *url = g_strjoin("/", "file://", pwd, argv[1], NULL); + url = g_strjoin("/", "file://", pwd, argv[1], NULL); g_free(pwd); } webkit_web_view_open(WEBKIT_WEB_VIEW(view), url); -- 2.25.1