server: Deplete user list on exit.
[paraslash.git] / audioc.c
index 38151a5..77a0539 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -287,12 +287,11 @@ __noreturn static void print_completions(void)
 static char *configfile_exists(void)
 {
        char *config_file;
-       struct stat statbuf;
        char *home = para_homedir();
 
        config_file = make_message("%s/.paraslash/audioc.conf", home);
        free(home);
-       if (!stat(config_file, &statbuf))
+       if (file_exists(config_file))
                return config_file;
        free(config_file);
        return NULL;