Initializze p1..p4_off, to silence a (wrong) compiler warning
This commit is contained in:
+4
-4
@@ -127,10 +127,10 @@ int uc_mbuf_extend_tailroom(struct MBuf *mbuf, uint32_t len)
|
||||
uint32_t data_len;
|
||||
uint32_t tailroom_len;
|
||||
uint8_t *new_data;
|
||||
uint32_t p1_off;
|
||||
uint32_t p2_off;
|
||||
uint32_t p3_off;
|
||||
uint32_t p4_off;
|
||||
uint32_t p1_off = 0;
|
||||
uint32_t p2_off = 0;
|
||||
uint32_t p3_off = 0;
|
||||
uint32_t p4_off = 0;
|
||||
|
||||
if ((mbuf->flags & (UC_MBUF_FL_MALLOC | UC_MBUF_FL_MALLOC_BUF)) == 0) {
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user