projects
/
browser-dbus-bridge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4b14a4b
)
[tests] Fix compilation of jscorebus tester
author
Kalle Vahlman
<kalle.vahlman@movial.com>
Tue, 5 May 2009 06:56:16 +0000
(09:56 +0300)
committer
Kalle Vahlman
<kalle.vahlman@movial.com>
Tue, 5 May 2009 06:56:16 +0000
(09:56 +0300)
tests/jscorebus-webkit.c
patch
|
blob
|
history
diff --git
a/tests/jscorebus-webkit.c
b/tests/jscorebus-webkit.c
index 866e9ba04b0883b05cdd3c9a0b095bcfb2e716f4..9228b84d26642d269052da13681238ee9b59dc08 100644
(file)
--- 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 {
{
webkit_web_view_open(WEBKIT_WEB_VIEW(view), argv[1]);
} else {
+ gchar *url = NULL;
if (g_path_is_absolute(argv[1])) {
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();
} 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);
g_free(pwd);
}
webkit_web_view_open(WEBKIT_WEB_VIEW(view), url);