01_array_initialize.patch 631 B

1234567891011121314151617181920
  1. Description: Fix array initialization bug
  2. Author: Phil Nelson
  3. Origin: upstream
  4. Bug-Debian: http://bugs.debian.org/586969
  5. Bug-Debian: http://bugs.debian.org/671513
  6. ---
  7. This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
  8. Index: bc/bc/storage.c
  9. ===================================================================
  10. --- bc.orig/bc/storage.c 2013-06-02 20:34:09.401273864 -0400
  11. +++ bc/bc/storage.c 2013-06-02 20:34:11.000000000 -0400
  12. @@ -179,7 +179,7 @@
  13. /* Initialize the new elements. */
  14. - for (; indx < v_count; indx++)
  15. + for (; indx < a_count; indx++)
  16. arrays[indx] = NULL;
  17. /* Free the old elements. */