projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8d14c43
)
Declare and use only when needed
author
Ricardo Mones
<ricardo@mones.org>
Sat, 4 Mar 2017 11:46:21 +0000
(12:46 +0100)
committer
Ricardo Mones
<ricardo@mones.org>
Sat, 4 Mar 2017 11:46:21 +0000
(12:46 +0100)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index a38cbd8e918e6481a62fdfdfccadeeecfa4d5c71..48fe0d9fbc888a5091c28972c623b6143442d075 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-158,7
+158,9
@@
static DBusGProxy *awn_proxy = NULL;
#endif
gchar *prog_version;
#endif
gchar *prog_version;
+#ifdef HAVE_LIBSM
gchar *argv0;
gchar *argv0;
+#endif
#ifdef HAVE_STARTUP_NOTIFICATION
static SnLauncheeContext *sn_context = NULL;
#ifdef HAVE_STARTUP_NOTIFICATION
static SnLauncheeContext *sn_context = NULL;
@@
-997,7
+999,9
@@
int main(int argc, char *argv[])
}
prog_version = PROG_VERSION;
}
prog_version = PROG_VERSION;
+#ifdef HAVE_LIBSM
argv0 = g_strdup(argv[0]);
argv0 = g_strdup(argv[0]);
+#endif
parse_cmd_opt(argc, argv);
parse_cmd_opt(argc, argv);