summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-11-17 04:34:55 +0100
committerportix <portix@gmx.net>2012-11-17 04:34:55 +0100
commita343ebd88ba2fc210c38481b86636f5722098c24 (patch)
treeb055400138e6875c2a16460e61f9bf83df6025e0 /src
parentaed534065ca59cda04b615cbfe26df40669ceefa (diff)
downloaddwb-a343ebd88ba2fc210c38481b86636f5722098c24.zip
Fixing segfault if userscript is a symlink
Diffstat (limited to 'src')
-rw-r--r--src/dwb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dwb.c b/src/dwb.c
index 01d36354..24ee636a 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -2881,7 +2881,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) {
fprintf(stderr, "Cannot read %s : %s\n", path, error->message);
goto loop_end;
}