diff options
author | Fabian Groffen <grobian@gentoo.org> | 2019-05-24 14:25:24 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2019-05-24 14:25:24 +0200 |
commit | 35c252312d61c203deac250e5034aba5f9c706b9 (patch) | |
tree | 470a6f05121c358c6414eba92ada3f755d2fb7e7 /qmanifest.c | |
parent | gitignore: ignore all applets and gnupg stuff (diff) | |
download | portage-utils-35c252312d61c203deac250e5034aba5f9c706b9.tar.gz portage-utils-35c252312d61c203deac250e5034aba5f9c706b9.tar.bz2 portage-utils-35c252312d61c203deac250e5034aba5f9c706b9.zip |
qmanifest: avoid reading uninitialised memory
this likely fixes the problem Travis found that I cannot repeat here
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qmanifest.c')
-rw-r--r-- | qmanifest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qmanifest.c b/qmanifest.c index ed203a6..b5bbd79 100644 --- a/qmanifest.c +++ b/qmanifest.c @@ -1777,6 +1777,8 @@ qmanifest_main(int argc, char **argv) } else { snprintf(path, sizeof(path), "./%s", overlay); } + } else { + snprintf(path, sizeof(path), "%s", overlay); } snprintf(path2, sizeof(path2), "%s%s", portroot, path); |