Perhaps it would be better to do this in the function that would set sczCachedDirectory rather than force a reallocation (probably) just for a variable value.