diff options
Diffstat (limited to 'src/extension/dependency.cpp')
| -rw-r--r-- | src/extension/dependency.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/extension/dependency.cpp b/src/extension/dependency.cpp index e4073a00b..9490381c0 100644 --- a/src/extension/dependency.cpp +++ b/src/extension/dependency.cpp @@ -181,14 +181,12 @@ Dependency::check (void) const /* Not sure whether this is UTF8 happy, but it would seem like it considering that I'm searching (and finding) the ':' character */ - if (path != local_path && path != NULL) { + if (path != NULL) { path[0] = '\0'; path++; - } else { - path = NULL; } - if (local_path == '\0') { + if (*local_path == '\0') { final_name = g_strdup(_string); } else { final_name = g_build_filename(local_path, _string, NULL); |
