summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-11-13 20:48:44 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-11-13 20:48:44 (GMT)
commita9b66dd62fe1c7a3458ff5885a273b58ffda07dd (patch)
treebac0670e8026a7d0579543bd6cc420367539e0ff
parent8d7d7ced0392b39e72a7a0dfe9de2deb112fd01f (diff)
downloadeeshow-a9b66dd62fe1c7a3458ff5885a273b58ffda07dd.zip
eeshow-a9b66dd62fe1c7a3458ff5885a273b58ffda07dd.tar.gz
eeshow-a9b66dd62fe1c7a3458ff5885a273b58ffda07dd.tar.bz2
file/file.c (try_related): don't return NULL if function is "bool"
-rw-r--r--file/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file/file.c b/file/file.c
index ff220cb..e810e20 100644
--- a/file/file.c
+++ b/file/file.c
@@ -98,7 +98,7 @@ static bool try_related(struct file *file)
tmp = file_graft_relative(file->related->name, file->name);
if (!tmp)
- return NULL;
+ return 0;
if (*file->name == '/')
return 0;