[Ecls-list] [Patch] trivial fix for ecl_read_object_with_delimiter

red plait redplait at gmail.com
Wed Feb 15 14:09:29 UTC 2012


Hi
It seems that in error case ecl_read_object_with_delimiter try to use
uninitialized var i
I think right code must be:

*** src\c\read.d        Wed Feb 15 18:03:30 2012
--- src\c\read.d.old    Wed Feb 15 17:57:55 2012
*************** BEGIN:
*** 207,213 ****
                  }
                  unlikely_if (the_env->nvalues > 1) {
                          FEerror("The readmacro ~S returned ~D values.",
!                                 2, x, MAKE_FIXNUM(the_env->nvalues));
                  }
                  return o;
          }
--- 207,213 ----
                  }
                  unlikely_if (the_env->nvalues > 1) {
                          FEerror("The readmacro ~S returned ~D values.",
!                                 2, x, MAKE_FIXNUM(i));
                  }
                  return o;
          }




More information about the ecl-devel mailing list