瀏覽代碼

Bugfix.

* src/names.c (collect_and_sort_names): Initialize prev_name.
Reported by Dmitry V. Levin.
Sergey Poznyakoff 15 年之前
父節點
當前提交
a3f1d933cc
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;