X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/d38e1f468376f8b19b208f2da4d20cb2919875dd..HEAD:/onak.c diff --git a/onak.c b/onak.c index fb14df0..6baea3d 100644 --- a/onak.c +++ b/onak.c @@ -330,7 +330,8 @@ int main(int argc, char *argv[]) unsigned char *photo = NULL; size_t length = 0; - if (getphoto(keys, 0, &photo, &length)) { + if (getphoto(keys, 0, &photo, + &length) == ONAK_E_OK) { fwrite(photo, 1, length,