X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/rigol/blobdiff_plain/713be7a43ed11947c358fc67c11b9df7b0be204c..20074af7567bf89b5cbc059340d97fba754e1747:/commands.c diff --git a/commands.c b/commands.c index cb8dd6d..1b243a2 100644 --- a/commands.c +++ b/commands.c @@ -123,6 +123,7 @@ unsigned char* get_lcd(struct scope *sc, int *imglen, int keylock) if (l != sizeof(screen)) { printf ("hmm. didnt' get %d bytes, but %d\n\n", (int)sizeof(screen), l); + return NULL; } png = lcd2png(screen, imglen);