projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed6989e
)
- repo_arch: make it work with empty prefixes
author
Michael Schroeder
<mls@suse.de>
Thu, 6 Sep 2012 12:19:16 +0000
(14:19 +0200)
committer
Michael Schroeder
<mls@suse.de>
Thu, 6 Sep 2012 12:19:16 +0000
(14:19 +0200)
ext/repo_arch.c
patch
|
blob
|
history
diff --git
a/ext/repo_arch.c
b/ext/repo_arch.c
index
dfa2ac8
..
5151803
100644
(file)
--- a/
ext/repo_arch.c
+++ b/
ext/repo_arch.c
@@
-256,7
+256,7
@@
static int gettarhead(struct tarhead *th)
memcpy(prefix, th->blk + 345, 155);
prefix[155] = 0;
l = strlen(prefix);
- if (prefix[l - 1] == '/')
+ if (
l &&
prefix[l - 1] == '/')
prefix[l - 1] = 0;
th->path = solv_dupjoin(prefix, "/", path);
}