[前][次][番号順一覧][スレッド一覧]

ruby-changes:24290

From: nobu <ko1@a...>
Date: Mon, 9 Jul 2012 13:36:02 +0900 (JST)
Subject: [ruby-changes:24290] nobu:r36341 (trunk): ext/zlib/zlib.c: initialize return value

nobu	2012-07-09 13:35:53 +0900 (Mon, 09 Jul 2012)

  New Revision: 36341

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36341

  Log:
    ext/zlib/zlib.c: initialize return value
    
    * ext/zlib/zlib.c (zstream_run_func): initialize the return value,
      interrupt flag may set before starting loop.

  Modified files:
    trunk/ext/zlib/zlib.c

Index: ext/zlib/zlib.c
===================================================================
--- ext/zlib/zlib.c	(revision 36340)
+++ ext/zlib/zlib.c	(revision 36341)
@@ -924,6 +924,7 @@
     struct zstream *z = args->z;
     uInt n;
 
+    err = Z_OK;
     while (!args->interrupt) {
 	n = z->stream.avail_out;
 	err = z->func->run(&z->stream, flush);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]