Skip to content

Commit

Permalink
Update util.c
Browse files Browse the repository at this point in the history
  • Loading branch information
dvershinin authored Mar 3, 2019
1 parent b43934e commit 126f61a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,8 @@ get_global_config (void)
{
char *path = NULL;

path = xmalloc (snprintf (NULL, 0, "%s/goaccess.conf", SYSCONFDIR) + 1);
sprintf (path, "%s/goaccess.conf", SYSCONFDIR);
path = xmalloc (snprintf (NULL, 0, "%s/goaccess/goaccess.conf", SYSCONFDIR) + 1);
sprintf (path, "%s/goaccess/goaccess.conf", SYSCONFDIR);

return path;
}
Expand Down

0 comments on commit 126f61a

Please sign in to comment.