From: Karel Zak Date: Mon, 13 Sep 2010 15:17:14 +0000 (+0200) Subject: libmount: fix optstr test X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=496f189e776d726ef264afb793e114bb0a193898;p=util-linux libmount: fix optstr test Signed-off-by: Karel Zak --- 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)