mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-29 15:46:46 +00:00
Fix nullPointerRedundantCheck warning on ESP32
This commit is contained in:
parent
ec04aa0a89
commit
6926a50d70
@ -1697,7 +1697,8 @@ void CannedMessageModule::drawDestinationSelectionScreen(OLEDDisplay *display, O
|
|||||||
strncpy(entryText, node->user.long_name, sizeof(entryText) - 1);
|
strncpy(entryText, node->user.long_name, sizeof(entryText) - 1);
|
||||||
entryText[sizeof(entryText) - 1] = '\0';
|
entryText[sizeof(entryText) - 1] = '\0';
|
||||||
}
|
}
|
||||||
int availWidth = display->getWidth() - (graphics::isHighResolution ? 40 : 20) - ((node->is_favorite) ? 10 : 0);
|
int availWidth =
|
||||||
|
display->getWidth() - (graphics::isHighResolution ? 40 : 20) - ((node && node->is_favorite) ? 10 : 0);
|
||||||
if (availWidth < 0)
|
if (availWidth < 0)
|
||||||
availWidth = 0;
|
availWidth = 0;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user