fix compiler warning

This commit is contained in:
Brian Lopez 2010-08-20 12:08:29 -07:00
parent a19888e939
commit e56c79894c

View File

@ -127,7 +127,7 @@ static VALUE rb_mysql_result_fetch_row(VALUE self, ID db_timezone, ID app_timezo
for (i = 0; i < wrapper->numberOfFields; i++) { for (i = 0; i < wrapper->numberOfFields; i++) {
VALUE field = rb_mysql_result_fetch_field(self, i, symbolizeKeys); VALUE field = rb_mysql_result_fetch_field(self, i, symbolizeKeys);
if (row[i]) { if (row[i]) {
VALUE val; VALUE val = Qnil;
switch(fields[i].type) { switch(fields[i].type) {
case MYSQL_TYPE_NULL: // NULL-type field case MYSQL_TYPE_NULL: // NULL-type field
val = Qnil; val = Qnil;