Fix MQX example null deref
This commit is contained in:
@@ -88,7 +88,7 @@ int sdcard_open(MQX_FILE_PTR *com_handle, MQX_FILE_PTR *sdcard_handle,
|
|||||||
/* Open partition manager */
|
/* Open partition manager */
|
||||||
*partman_handle = fopen(partman_name, NULL);
|
*partman_handle = fopen(partman_name, NULL);
|
||||||
if (*partman_handle == NULL) {
|
if (*partman_handle == NULL) {
|
||||||
printf("Error opening partition manager: %s\n");
|
printf("Error opening partition manager\n");
|
||||||
return -64;
|
return -64;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user