X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=fade.c;h=9ba733b3113ca0273143e95892266c236938631f;hp=55c62a7444b64430920aaf5d2b4521b8bf2050e6;hb=652128ed748840a22d4dcb85c1ac54bc95fdc33d;hpb=3f5251b1d2b5b3d651b7e9190d7db14b4596d0f9 diff --git a/fade.c b/fade.c index 55c62a74..9ba733b3 100644 --- a/fade.c +++ b/fade.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1998-2005 Andre Noll + * Copyright (C) 1998-2007 Andre Noll * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -267,17 +267,17 @@ static void snooze(void) static int configfile_exists(void) { - static char *config_file; + static char *config_file; - if (!args_info.config_file_given) { + if (!args_info.config_file_given) { char *home = para_homedir(); const char *conf = ".paraslash/fade.conf"; free(config_file); config_file = make_message("%s/%s", home, conf); free(home); - args_info.config_file_arg = config_file; - } - return file_exists(args_info.config_file_arg); + args_info.config_file_arg = config_file; + } + return file_exists(args_info.config_file_arg); } @@ -287,6 +287,7 @@ int main(int argc, char *argv[]) if (fade_cmdline_parser(argc, argv, &args_info)) exit(EXIT_FAILURE); + HANDLE_VERSION_FLAG("fade", args_info); ret = configfile_exists(); if (!ret && args_info.config_file_given) { PARA_EMERG_LOG("can not read config file %s\n",