From 7ce83ff1633c1764ba567362f66b43e66ffae69d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 16 Nov 2010 10:30:48 +0100 Subject: render_hkl: Check success of loading file correctly --- src/render_hkl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render_hkl.c') diff --git a/src/render_hkl.c b/src/render_hkl.c index b7559cf5..a4ad340a 100644 --- a/src/render_hkl.c +++ b/src/render_hkl.c @@ -615,7 +615,7 @@ int main(int argc, char *argv[]) ref = new_list_intensity(); cts = new_list_count(); ReflItemList *items = read_reflections(infile, ref, NULL, cts, NULL); - if ( ref == NULL ) { + if ( items == NULL ) { ERROR("Couldn't open file '%s'\n", infile); return 1; } -- cgit v1.2.3