vendorctrl保护

lowmem
XI.CHEN 4 weeks ago
parent 1fbb9ffe51
commit 81d4cd700c

@ -5267,7 +5267,7 @@ VendorCtrl* CPhoneDevice::MakeVendorCtrl(int vendor, uint8_t channel, const std:
// Hang Yu - New // Hang Yu - New
vendorCtrl = new HangYuCtrl(ip, userName, password, channel, netHandle, syncTime); vendorCtrl = new HangYuCtrl(ip, userName, password, channel, netHandle, syncTime);
} }
if (syncTime) if (syncTime && (vendorCtrl != NULL))
{ {
time_t ts = time(NULL); time_t ts = time(NULL);
vendorCtrl->UpdateTime(ts); vendorCtrl->UpdateTime(ts);

Loading…
Cancel
Save