[nagiosplug] check_mysql: Use xasprintf instead of asprintf
Nagios Plugin Development
nagios-plugins at users.sourceforge.net
Sun Aug 18 22:40:44 CEST 2013
Module: nagiosplug
Branch: master
Commit: 779b91e48f97804958a453858cca195457174d38
Author: Holger Weiss <holger at zedat.fu-berlin.de>
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);
More information about the Commits
mailing list