Explorar o código

check_mysql: Use xasprintf instead of asprintf

Holger Weiss %!s(int64=12) %!d(string=hai) anos
pai
achega
779b91e48f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);