Browse Source

🩹 Handle nullptr in CardReader::printLongPath (#23197)

vanilla_fb_2.0.x
Jason Smith 3 years ago
committed by Scott Lahteine
parent
commit
a8c0e11cb1
  1. 2
      Marlin/src/sd/cardreader.cpp

2
Marlin/src/sd/cardreader.cpp

@ -359,7 +359,7 @@ void CardReader::ls(TERN_(LONG_FILENAME_HOST_SUPPORT, bool includeLongNames/*=fa
//
void CardReader::printLongPath(char * const path) {
int i, pathLen = strlen(path);
int i, pathLen = path ? strlen(path) : 0;
// SERIAL_ECHOPGM("Full Path: "); SERIAL_ECHOLN(path);

Loading…
Cancel
Save