Skip to content

Commit

Permalink
checkpolicy: delete invalid spaces
Browse files Browse the repository at this point in the history
Closes: #372
Signed-off-by: lujiev <572084868@qq.com>
Acked-by: Jason Zaman <jason@perfinion.com>
  • Loading branch information
lujiev authored and perfinion committed Jan 15, 2023
1 parent 30b3e9d commit 27e1c7c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions checkpolicy/policy_define.c
Original file line number Diff line number Diff line change
Expand Up @@ -2208,7 +2208,7 @@ static int avrule_ioctl_partialdriver(struct av_ioctl_range_list *rangelist,
xperms = calloc(1, sizeof(av_extended_perms_t));
if (!xperms) {
yyerror("out of memory");
return - 1;
return -1;
}

r = rangelist;
Expand Down Expand Up @@ -2245,7 +2245,7 @@ static int avrule_ioctl_completedriver(struct av_ioctl_range_list *rangelist,
xperms = calloc(1, sizeof(av_extended_perms_t));
if (!xperms) {
yyerror("out of memory");
return - 1;
return -1;
}

r = rangelist;
Expand Down Expand Up @@ -2289,7 +2289,7 @@ static int avrule_ioctl_func(struct av_ioctl_range_list *rangelist,
xperms = calloc(1, sizeof(av_extended_perms_t));
if (!xperms) {
yyerror("out of memory");
return - 1;
return -1;
}

r = rangelist;
Expand Down Expand Up @@ -2352,11 +2352,11 @@ static int avrule_cpy(avrule_t *dest, const avrule_t *src)
dest->flags = src->flags;
if (type_set_cpy(&dest->stypes, &src->stypes)) {
yyerror("out of memory");
return - 1;
return -1;
}
if (type_set_cpy(&dest->ttypes, &src->ttypes)) {
yyerror("out of memory");
return - 1;
return -1;
}
dest->line = src->line;
dest->source_filename = strdup(source_file);
Expand Down

0 comments on commit 27e1c7c

Please sign in to comment.