Procházet zdrojové kódy

Bugfix.

* src/names.c (collect_and_sort_names): Initialize prev_name.
Reported by Dmitry V. Levin.
Sergey Poznyakoff před 15 roky
rodič
revize
a3f1d933cc
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/names.c

+ 1 - 1
src/names.c

@@ -871,7 +871,7 @@ void
 collect_and_sort_names (void)
 {
   struct name *name;
-  struct name *next_name, *prev_name;
+  struct name *next_name, *prev_name = NULL;
   int num_names;
   struct stat statbuf;
   Hash_table *nametab;