os: Fix compiler error
This fixes compilation error in GCC 6.3.1 and -O3:
Error: repos/apache-mynewt-core/kernel/os/src/os_mbuf.c: In function
'os_mbuf_cmpm':
repos/apache-mynewt-core/kernel/os/src/os_mbuf.c:953:18: error:
'om2_off' may be used uninitialized in this function
[-Werror=maybe-uninitialized]
om2_left = cur2->om_len - om2_off;
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
@@ -927,6 +927,9 @@ os_mbuf_cmpm(const struct os_mbuf *om1, uint16_t offset1,
uint16_t om2_off;
int rc;
+ om1_off = 0;
+ om2_off = 0;
+
cur1 = os_mbuf_off(om1, offset1, &om1_off);
cur2 = os_mbuf_off(om2, offset2, &om2_off);
