Skip to content

Commit

Permalink
Remove unnecessary sizeof(char) in array
Browse files Browse the repository at this point in the history
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
  • Loading branch information
navi-desu committed Mar 8, 2023
1 parent 3b98a41 commit 8cf077a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librc/librc-depend.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ rc_deptree_update_needed(time_t *newest, char *file)
time_t mtime;

/* Create base directories if needed */
char depdir[sizeof(char) * PATH_MAX];
char depdir[PATH_MAX];
for (i = 0; depdirs[i]; i++) {
snprintf(depdir, PATH_MAX, "%s/%s", rc_svcdir_get(), depdirs[i]);
if (mkdir(depdir, 0755) != 0 && errno != EEXIST)
Expand Down

0 comments on commit 8cf077a

Please sign in to comment.