X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fexecuter.c;h=cdbe5bd969848d4b9198c7b1cb9d447cbd8a9f2c;hb=9f2cfbfef3ce2052198a2323e443e469b18295b8;hp=bc42ccf8693561bec579cb7832ee591dcff587b4;hpb=e8b52a913a8fc3d2ef0dae82eda5905668ebfae1;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)