summaryrefslogtreecommitdiff
path: root/src/ug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ug.c')
-rw-r--r--src/ug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ug.c b/src/ug.c
index 6045237..47c70d1 100644
--- a/src/ug.c
+++ b/src/ug.c
@@ -385,7 +385,7 @@ UG_API int ug_is_installed(const char *name)
return -1;
}
- if (!ug_module_get_file_path(name, &ug_file_path))
+ if (ug_module_get_file_path(name, &ug_file_path) < 0)
ret = 0;
if (ug_file_path)