isp_dump bug correction
authorNathael Pajani <nathael.pajani@ed3l.fr>
Sun, 15 Apr 2012 21:26:35 +0000 (23:26 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Sun, 15 Apr 2012 21:26:35 +0000 (23:26 +0200)
isp_utils.c

index 3a858fc..8a01b67 100644 (file)
@@ -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) {