summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-11-23 18:35:58 +0100
committerportix <portix@gmx.net>2012-11-23 18:35:58 +0100
commit462184c8329c3a4d7449cefaf798b6fe02e69817 (patch)
treecb302110bf56c2394d441229602d94b77d5b846f
parentd5af6fd24e95d0a04d11799bfd89dcde32ff6f43 (diff)
downloaddwb-462184c8329c3a4d7449cefaf798b6fe02e69817.zip
Fixing segfault if userscript is a symlink, closing #239
-rw-r--r--src/dwb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dwb.c b/src/dwb.c
index a5ae11f9..bfbeaed7 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -2907,7 +2907,7 @@ dwb_get_scripts() {
continue;
else if (g_file_test(path, G_FILE_TEST_IS_SYMLINK)) {
realpath = g_file_read_link(path, &error);
- if (realpath != NULL) {
+ if (realpath == NULL) {
g_free(path);
fprintf(stderr, "Cannot read %s : %s\n", path, error->message);
goto loop_end;