Skip to content

Commit

Permalink
Correct path to access()
Browse files Browse the repository at this point in the history
When checking to see if the configuration file exists, use the correct
argument, and not the built-up string.
  • Loading branch information
ThomasAdam committed Oct 31, 2016
1 parent 478cb80 commit d74e890
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fvwm/fvwm.c
Expand Up @@ -1933,8 +1933,7 @@ int main(int argc, char **argv)
* instead.
*/

if (access(config_commands[num_config_commands],
F_OK) != 0) {
if (access(argv[i], F_OK) != 0) {
free(config_commands[num_config_commands]);
config_commands[num_config_commands] =
safestrdup("Read " FVWM_DATADIR
Expand Down

0 comments on commit d74e890

Please sign in to comment.