Browse Source

check_mysql: Use xasprintf instead of asprintf

Holger Weiss 12 years ago
parent
commit
779b91e48f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/check_mysql.c

+ 1 - 1
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);