From: Pat Eyler Date: 2006-05-03T11:20:13+09:00 Subject: uninit bug in yaml/emitter.c During our hacking night, we also looked at an UNINIT bug in yaml/emitter.c It looked like that actual problem was in syck_scan_scalar. We think the following is the right way to fix things, but would appreciate someone looking at it and committing if appropriate. diff -p -u -r1.16 emitter.c --- emitter.c 2 Feb 2006 15:02:49 -0000 1.16 +++ emitter.c 3 May 2006 02:16:07 -0000 @@ -559,7 +559,7 @@ syck_scan_scalar( int req_width, char *c } if ( ( cursor[0] == '-' || cursor[0] == ':' || cursor[0] == '?' || cursor[0] == ',' ) && - ( cursor[1] == ' ' || cursor[1] == '\n' || len == 1 ) ) + ( len == 1 || cursor[1] == ' ' || cursor[1] == '\n' ) ) { flags |= SCAN_INDIC_S; }