Kaynağa Gözat

made statbuf static, so that is is zero when not initialized

ceriel 29 yıl önce
ebeveyn
işleme
33da68f7e2
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      util/arch/archiver.c

+ 1 - 1
util/arch/archiver.c

@@ -240,7 +240,7 @@ char *argv[];
 	usage();
 #ifdef DISTRIBUTION
   if (distr_fl) {
-	struct stat statbuf;
+	static struct stat statbuf;
 
 	stat(progname, &statbuf);
 	distr_time = statbuf.st_mtime;