From: Simon Paillard <spaillard-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
To: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Simon Paillard <spaillard-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
Subject: [PATCH] mallopt.3: fix program source to match behaviour example
Date: Sun, 29 Apr 2012 14:07:51 +0200 [thread overview]
Message-ID: <1335701271-10490-1-git-send-email-spaillard@debian.org> (raw)
Call mallopt with argv[1] only if a parameter is given
---
man3/mallopt.3 | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/man3/mallopt.3 b/man3/mallopt.3
index ddb1aed..03f1e9a 100644
--- a/man3/mallopt.3
+++ b/man3/mallopt.3
@@ -543,11 +543,11 @@ main(int argc, char *argv[])
fprintf(stderr, "%s <M_CHECK_ACTION\-value>\\n", argv[0]);
exit(EXIT_FAILURE);
}
- }
- if (mallopt(M_CHECK_ACTION, atoi(argv[1])) != 1) {
- fprintf(stderr, "mallopt() failed");
- exit(EXIT_FAILURE);
+ if (mallopt(M_CHECK_ACTION, atoi(argv[1])) != 1) {
+ fprintf(stderr, "mallopt() failed");
+ exit(EXIT_FAILURE);
+ }
}
p = malloc(1000);
--
1.7.2.5
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2012-04-29 12:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-29 12:07 Simon Paillard [this message]
[not found] ` <1335701271-10490-1-git-send-email-spaillard-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
2012-04-29 18:47 ` [PATCH] mallopt.3: fix program source to match behaviour example Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1335701271-10490-1-git-send-email-spaillard@debian.org \
--to=spaillard-8fiuurrzop0dnm+yrofe0a@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox