Bug #1233: Zlib - Run Time Check Failure #3 (unitialized variable)
http://redmine.ruby-lang.org/issues/show/1233

Author: Charlie Savage
Status: Open, Priority: Normal
Category: ext, Target version: 1.9.1
ruby -v: ruby 1.9.2dev (2009-03-01) [i386-mswin32_90]

Build and install Ruby 1.9.1 with -RTC1 with VC2008.

Then at the command prompt:

gem install libxml-ruby (you can use any gem)

Then you get:

Run-Time Check Failure #3 - The variable 'guard' is being used without being initialized.

This is in ext/zlib/zlib.c at line 721.

Patch is simple, initialize guard to Qnil.


----------------------------------------
http://redmine.ruby-lang.org