Skip to content

Commit

Permalink
Update config.c
Browse files Browse the repository at this point in the history
getpath function contained hardcoded "PIDFILE" value
  • Loading branch information
r00t0vi4 authored Dec 12, 2018
1 parent d42bcb7 commit 2207eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ void getpath(FILE* fp, const char *option, const char *defaultloc, char **pointe
// option: Option string ("key") to try to read
// defaultloc: Value used if key is not found in file
// pointer: Location where read (or default) parameter is stored
char *buffer = parse_FTLconf(fp, "PIDFILE");
char *buffer = parse_FTLconf(fp, option);

errno = 0;
// Use sscanf() to obtain filename from config file parameter only if buffer != NULL
Expand Down

0 comments on commit 2207eec

Please sign in to comment.