[Xen-devel] [PATCH 2/2] xenstore: add assertion in database dumping code

2016-07-20 Thread Wei Liu
If memfile is NULL, the signal handler won't be installed, hence fopen won't dereference NULL. Coverity is not smart enough to figure that out unfortunately. Add an assertion to prevent coverity from complaining. Signed-off-by: Wei Liu --- Cc: Ian Jackson --- tools/xenstore/xenstored_core.c |

[Xen-devel] [PATCH 2/2] xenstore: add assertion in database dumping code

2016-07-20 Thread Ian Jackson
Wei Liu writes ("[PATCH 2/2] xenstore: add assertion in database dumping code"): > If memfile is NULL, the signal handler won't be installed, hence fopen > won't dereference NULL. Coverity is not smart enough to figure that out > unfortunately. Acked-by: Ian Jackson _