]> Kevux Git Server - fll/commitdiff
Bugfix: fix invalid f_string_lengths initializer
authorKevin Day <kevin@kevux.org>
Thu, 7 Jun 2012 04:49:12 +0000 (23:49 -0500)
committerKevin Day <kevin@kevux.org>
Thu, 7 Jun 2012 04:49:12 +0000 (23:49 -0500)
This should initialize to 0 and not the f_string_length_initializer because it is a pointer.

level_0/f_strings/c/strings.h

index 546ccf3..b7382da 100644 (file)
@@ -109,7 +109,7 @@ extern "C"{
     f_array_length  used;  // total number of allocated spaces used
   } f_string_lengths;
 
-  #define f_string_lengths_initialize { f_string_length_initialize, f_array_length_initialize, f_array_length_initialize }
+  #define f_string_lengths_initialize { 0, f_array_length_initialize, f_array_length_initialize }
 
   #define f_delete_string_lengths(status, lengths) \
     f_delete_structure(status, lengths, f_string_length)