aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-05-12 10:55:45 +0200
committerThomas White <taw@physics.org>2021-05-12 10:55:45 +0200
commit21d7b4754ea785de5cf805b8c72d6aabd8a0a372 (patch)
tree68fd9d74bf14abbea6de353849b45c62125c3fef /libcrystfel/src
parent967c094253f89dbb21ffed95bd8381610298e046 (diff)
MsgPack: Fix a silly copy/paste error
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/image-msgpack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/image-msgpack.c b/libcrystfel/src/image-msgpack.c
index 38bafb0a..0f5ab746 100644
--- a/libcrystfel/src/image-msgpack.c
+++ b/libcrystfel/src/image-msgpack.c
@@ -276,7 +276,7 @@ double image_msgpack_get_value(const char *name,
}
value_obj = find_msgpack_kv(obj, name);
- if ( obj == NULL ) {
+ if ( value_obj == NULL ) {
ERROR("Couldn't find '%s' in MessagePack object\n", name);
msgpack_unpacked_destroy(&unpacked);
goto out;