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