🩹 Handle nullptr in CardReader::printLongPath (#23197)
This commit is contained in:
		
				
					committed by
					
						 Scott Lahteine
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							0556da85b0
						
					
				
				
					commit
					a8c0e11cb1
				
			| @@ -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); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user