CID 1021: Move NULL check before dereferencing "string" in the TRACE statement.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27468 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d02cde3053
commit
0c397beb9c
@ -196,11 +196,12 @@ void
|
|||||||
iso9660_info::_SetString(char **string, const char *newString,
|
iso9660_info::_SetString(char **string, const char *newString,
|
||||||
uint32 newLength)
|
uint32 newLength)
|
||||||
{
|
{
|
||||||
TRACE(("iso9660_info::set_string(%p ('%s'), '%s', %ld)\n", string,
|
|
||||||
*string, newString, newLength));
|
|
||||||
if (string == NULL)
|
if (string == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
TRACE(("iso9660_info::set_string(%p ('%s'), '%s', %ld)\n", string,
|
||||||
|
*string, newString, newLength));
|
||||||
|
|
||||||
char *&oldString = *string;
|
char *&oldString = *string;
|
||||||
free(oldString);
|
free(oldString);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user