Re: [Qemu-devel] [PATCH 05/19] Ensure that QEMU exits if drive_add parsing fails

2010-06-26 Thread Markus Armbruster
"Daniel P. Berrange" writes: > The drive_add() method returns NULL if it failed to parse the > parameter values for any reason. All callers must check this > and exit if failure occurred. Annotate the method so that the > compiler validates this. Good move. Need more of that. > Signed-off-by:

[Qemu-devel] [PATCH 05/19] Ensure that QEMU exits if drive_add parsing fails

2010-06-07 Thread Daniel P. Berrange
The drive_add() method returns NULL if it failed to parse the parameter values for any reason. All callers must check this and exit if failure occurred. Annotate the method so that the compiler validates this. Signed-off-by: Daniel P. Berrange --- vl.c | 38 ++--