fish: Fix incorrect path passed to perror.
[libguestfs.git] / fish / config.c
index c92bc4e..c1d34fb 100644 (file)
@@ -116,7 +116,7 @@ parse_config (void)
     }
 
     if (fclose (fp) == -1) {
-      perror (path);
+      perror (etc_filename);
       exit (EXIT_FAILURE);
     }