diff options
-rw-r--r-- | tools/sequence.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/sequence.c b/tools/sequence.c index be4788b..d7310d4 100644 --- a/tools/sequence.c +++ b/tools/sequence.c @@ -30,7 +30,14 @@ cmd_t cmd_init( void) { - return (cmd_t)malloc(sizeof(struct cmd_obj)); + cmd_t cmd; + + cmd = malloc(sizeof(struct cmd_obj)); + if (cmd) { + cmd->c_tag = ACL_UNDEFINED_TAG; + cmd->c_perm = 0; + } + return cmd; } |