From 622244eda08c4193af4c96408fa6d86499f4a3bb Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Sun, 15 Apr 2012 23:26:35 +0200 Subject: [PATCH] isp_dump bug correction --- isp_utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/isp_utils.c b/isp_utils.c index 3a858fc..8a01b67 100644 --- a/isp_utils.c +++ b/isp_utils.c @@ -30,6 +30,9 @@ void isp_dump(const unsigned char* buf, unsigned int buf_size) { unsigned int count = 0; char pass = 0; + if (buf_size == 0) { + return; + } while ((count < buf_size) || (pass == 0)) { if (count == buf_size) { while (count & 0x0F) { -- 2.43.0