[nagiosplug] check_mysql: Use xasprintf instead of asprintf
"Nagios Plugin Development" <[email protected]> Sun, 18 Aug 2013 20:40:44 +0000
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module: nagiosplug Branch: master Commit: 779b91e48f97804958a453858cca195457174d38 Author: Holger Weiss <[email protected]> Date: Sun Aug 18 22:29:31 2013 +0200 URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=779b91e check_mysql: Use xasprintf instead of asprintf --- plugins/check_mysql.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index e7db0de..95e800c 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c @@ -500,7 +500,7 @@ void print_help (void) { char *myport; - asprintf (&myport, "%d", MYSQL_PORT); + xasprintf (&myport, "%d", MYSQL_PORT); print_revision (progname, NP_VERSION); ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk