aboutsummaryrefslogtreecommitdiff
path: root/q.c
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-11-30 17:25:18 +0100
committerFabian Groffen <grobian@gentoo.org>2019-11-30 17:26:43 +0100
commitd1442dee24b0760665a103c5c1b3ad838eef02f9 (patch)
tree72152914aa8a7a4e11ebd6ddac2897fd8c80f10f /q.c
parenttests: allow running all tests using valgrind (diff)
downloadportage-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 'q.c')
-rw-r--r--q.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/q.c b/q.c
index 40cdc2a..a974df8 100644
--- a/q.c
+++ b/q.c
@@ -238,12 +238,12 @@ int q_main(int argc, char **argv)
switch (var->type) {
case _Q_BOOL:
- printf("%s%s%s\n",
+ printf("%s%s%s",
YELLOW, *var->value.b ? "1" : "0", NORM);
break;
case _Q_STR:
case _Q_ISTR:
- printf("%s%s%s\n", RED, *var->value.s, NORM);
+ printf("%s%s%s", RED, *var->value.s, NORM);
break;
}
if (verbose)