X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fexecuter.c;h=cdbe5bd969848d4b9198c7b1cb9d447cbd8a9f2c;hb=0064467516248fb3b28bdbd7d0f4e54b861627cf;hp=bc42ccf8693561bec579cb7832ee591dcff587b4;hpb=39fb08818bbd9c438dbf23caa89937c663451b5a;p=openvswitch diff --git a/ofproto/executer.c b/ofproto/executer.c index bc42ccf8..cdbe5bd9 100644 --- a/ofproto/executer.c +++ b/ofproto/executer.c @@ -471,7 +471,7 @@ executer_create(const char *command_acl, const char *command_dir, return errno; } - e = xcalloc(1, sizeof *e); + e = xzalloc(sizeof *e); e->command_acl = xstrdup(command_acl); e->command_dir = (command_dir ? xstrdup(command_dir)