Ver Fonte

check_mysql: Use xasprintf instead of asprintf

Holger Weiss há 12 anos atrás
pai
commit
779b91e48f
1 ficheiros alterados com 1 adições e 1 exclusões
  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);