From: Karel Zak Date: Mon, 13 Sep 2010 15:17:14 +0000 (+0200) Subject: libmount: fix optstr test X-Git-Tag: v2.19-rc1~129 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=496f189e776d726ef264afb793e114bb0a193898;p=thirdparty%2Futil-linux.git libmount: fix optstr test Signed-off-by: Karel Zak --- diff --git a/shlibs/mount/src/optstr.c b/shlibs/mount/src/optstr.c index 2b5d46a9b8..caa46eae45 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)