diff options
author | 2019-11-30 17:25:18 +0100 | |
---|---|---|
committer | 2019-11-30 17:26:43 +0100 | |
commit | d1442dee24b0760665a103c5c1b3ad838eef02f9 (patch) | |
tree | 72152914aa8a7a4e11ebd6ddac2897fd8c80f10f /qatom.c | |
parent | tests: allow running all tests using valgrind (diff) | |
download | portage-utils-d1442dee24b0760665a103c5c1b3ad838eef02f9.tar.gz portage-utils-d1442dee24b0760665a103c5c1b3ad838eef02f9.tar.bz2 portage-utils-d1442dee24b0760665a103c5c1b3ad838eef02f9.zip |
misc fixes for valgrind
mainly memory and socket leaks, sometimes using invalid data, this is
related to bug #701402
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qatom.c')
-rw-r--r-- | qatom.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -55,7 +55,7 @@ int qatom_main(int argc, char **argv) if (action == _COMPARE && (argc - optind) % 2) err("compare needs even number of arguments"); - for (i = optind; i < argc; ++i) { + for (i = optind; i < argc; i++) { atom = atom_explode(argv[i]); if (atom == NULL) { warnf("invalid atom: %s\n", argv[i]); |