diff --git a/src/add-ons/kernel/file_systems/iso9660/iso9660_identify.cpp b/src/add-ons/kernel/file_systems/iso9660/iso9660_identify.cpp index a1582f063e..3af78f9065 100644 --- a/src/add-ons/kernel/file_systems/iso9660/iso9660_identify.cpp +++ b/src/add-ons/kernel/file_systems/iso9660/iso9660_identify.cpp @@ -196,11 +196,12 @@ void iso9660_info::_SetString(char **string, const char *newString, uint32 newLength) { - TRACE(("iso9660_info::set_string(%p ('%s'), '%s', %ld)\n", string, - *string, newString, newLength)); if (string == NULL) return; + TRACE(("iso9660_info::set_string(%p ('%s'), '%s', %ld)\n", string, + *string, newString, newLength)); + char *&oldString = *string; free(oldString);