diff options
author | portix <portix@gmx.net> | 2012-11-17 04:34:55 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2012-11-17 04:34:55 +0100 |
commit | a343ebd88ba2fc210c38481b86636f5722098c24 (patch) | |
tree | b055400138e6875c2a16460e61f9bf83df6025e0 /src | |
parent | aed534065ca59cda04b615cbfe26df40669ceefa (diff) | |
download | dwb-a343ebd88ba2fc210c38481b86636f5722098c24.zip |
Fixing segfault if userscript is a symlink
Diffstat (limited to 'src')
-rw-r--r-- | src/dwb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |