* sexp.c (sexp_sscan): Initialize NM. Thanks to Ian Peters for
authorWerner Koch <wk@gnupg.org>
Wed, 12 Mar 2003 10:47:18 +0000 (10:47 +0000)
committerWerner Koch <wk@gnupg.org>
Wed, 12 Mar 2003 10:47:18 +0000 (10:47 +0000)
valgrinding this.

src/ChangeLog
src/sexp.c

index 00ff3c6..9d11eb1 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-12  Werner Koch  <wk@gnupg.org>
+
+       * sexp.c (sexp_sscan): Initialize NM.  Thanks to Ian Peters for
+       valgrinding this.
+
 2003-03-06  Moritz Schulte  <mo@g10code.com>
 
        * secmem.h (GCRY_SECMEM_FLAG_NO_WARNING,
index 65e2466..4f8d449 100644 (file)
@@ -1021,7 +1021,7 @@ sexp_sscan( GCRY_SEXP *retsexp, size_t *erroff ,
        else if ( percent ) {
            if ( *p == 'm' ) { /* insert an MPI */
                GCRY_MPI m = va_arg (arg_ptr, GCRY_MPI);
-               size_t nm;
+               size_t nm = 0;
 
                if ( gcry_mpi_print( GCRYMPI_FMT_STD, NULL, &nm, m ) )
                    BUG ();