diff options
Diffstat (limited to 'rpmio/macro.c')
-rw-r--r-- | rpmio/macro.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c index afc0aca66..10e329e6b 100644 --- a/rpmio/macro.c +++ b/rpmio/macro.c @@ -1462,7 +1462,8 @@ rpmGetPath(const char *path, ...) expandMacros(NULL, NULL, buf, sizeof(buf)); for (s = p = buf; *s; s++, p++) { - while (s[0] == '/' && s[1] == '/') s++; + if (!(s > buf && s[-1] == ':')) + while (s[0] == '/' && s[1] == '/') s++; *p = *s; } *p = '\0'; |