Skip to content

Commit

Permalink
file: fixed a typo
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich committed Oct 5, 2023
1 parent d160ab9 commit 7427038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flb_file_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static char *expand_tilde(const char *path,
struct passwd *uinfo = NULL;

if (expansion_attempted != NULL) {
expansion_attempted = FLB_TRUE;
*expansion_attempted = FLB_TRUE;
}

if (path[0] == '~') {
Expand Down Expand Up @@ -112,7 +112,7 @@ static char *expand_tilde(const char *path,
int *expansion_attempted)
{
if (expansion_attempted != NULL) {
expansion_attempted = FLB_FALSE;
*expansion_attempted = FLB_FALSE;
}

return flb_strdup(path);
Expand Down

0 comments on commit 7427038

Please sign in to comment.