summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-05-01 18:26:06 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-05-01 18:26:06 +0000
commit7831640cf994a466dafb36eaf55acdf35dc457b2 (patch)
tree2bfe0f9ad176faea0aebf377ab6b88b8c0cef051 /src
parentRemove remaining ancient GTK+ version checks (diff)
downloadinkscape-7831640cf994a466dafb36eaf55acdf35dc457b2.tar.gz
inkscape-7831640cf994a466dafb36eaf55acdf35dc457b2.zip
fix extension path scan (Bug #801568 ; patch of Patrick Monnerat)
(bzr r11312)
Diffstat (limited to 'src')
-rw-r--r--src/extension/dependency.cpp6
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);