diff options
author | Thomas White <taw@physics.org> | 2021-01-14 12:01:18 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-01-14 12:01:18 +0100 |
commit | abd2f0157125b4ff96e6543f9f7aafe00d98766e (patch) | |
tree | 23d65047850f00a41c48335f0aeeedd190b9268f /libcrystfel | |
parent | 91c7417a6187e8f2f569656b41f19158e83620c1 (diff) |
data_template_new_from_string: Fix error path
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/datatemplate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/datatemplate.c b/libcrystfel/src/datatemplate.c index ac07abda..4f767c45 100644 --- a/libcrystfel/src/datatemplate.c +++ b/libcrystfel/src/datatemplate.c @@ -1106,7 +1106,7 @@ DataTemplate *data_template_new_from_string(const char *string_in) } while ( !done ); - if ( dt->n_panels == -1 ) { + if ( dt->n_panels == 0 ) { ERROR("No panel descriptions in geometry file.\n"); free(dt); return NULL; |