diff options
author | portix <portix@gmx.net> | 2012-11-23 18:35:58 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2012-11-23 18:35:58 +0100 |
commit | 462184c8329c3a4d7449cefaf798b6fe02e69817 (patch) | |
tree | cb302110bf56c2394d441229602d94b77d5b846f | |
parent | d5af6fd24e95d0a04d11799bfd89dcde32ff6f43 (diff) | |
download | dwb-462184c8329c3a4d7449cefaf798b6fe02e69817.zip |
Fixing segfault if userscript is a symlink, closing #239
-rw-r--r-- | src/dwb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |