From 4c528af3a6411f519db407abb8f96b9c98b422aa Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 8 Jan 2009 17:16:41 -0800 Subject: [PATCH] Use xstrdup() instead of xasprintf() for duplicating constant string. --- utilities/vlogconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/vlogconf.c b/utilities/vlogconf.c index c6a891a4..1187dcc2 100644 --- a/utilities/vlogconf.c +++ b/utilities/vlogconf.c @@ -210,7 +210,7 @@ int main(int argc, char *argv[]) case 'r': for (i = 0; i < n_clients; i++) { struct vlog_client *client = clients[i]; - char *request = xasprintf("reopen"); + char *request = xstrdup("reopen"); transact_ack(client, request, &ok); free(request); } -- 2.30.2