From 496f189e776d726ef264afb793e114bb0a193898 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 13 Sep 2010 17:17:14 +0200 Subject: [PATCH] libmount: fix optstr test Signed-off-by: Karel Zak --- shlibs/mount/src/optstr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shlibs/mount/src/optstr.c b/shlibs/mount/src/optstr.c index 2b5d46a9..caa46eae 100644 --- a/shlibs/mount/src/optstr.c +++ b/shlibs/mount/src/optstr.c @@ -520,7 +520,7 @@ int test_set(struct mtest *ts, int argc, char *argv[]) rc = mnt_optstr_set_option(&optstr, name, value); if (!rc) printf("result: >%s<\n", optstr); - return rc + return rc; } int test_get(struct mtest *ts, int argc, char *argv[]) @@ -542,7 +542,7 @@ int test_get(struct mtest *ts, int argc, char *argv[]) if (sz) { printf(", argument: size=%zd data=", sz); if (fwrite(val, 1, sz, stdout) != sz) - goto done; + return -1; } printf("\n"); } else if (rc == 1) -- 2.39.5