fix warning

git-svn-id: svn://10.0.0.236/trunk@37686 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sspitzer%netscape.com
1999-07-01 08:48:06 +00:00
parent dcf8ff59fb
commit b176b22c4f

View File

@@ -235,11 +235,11 @@ static void displayValues( nsIRegistry *reg, nsIRegistry::Key root ) {
// Print value contents.
switch ( type ) {
case nsIRegistry::String: {
char *value;
rv = reg->GetString( root, name, &value );
char *strValue;
rv = reg->GetString( root, name, &strValue );
if ( rv == NS_OK ) {
printString( value, strlen(name) );
PR_Free( value );
printString( strValue, strlen(name) );
PR_Free( strValue );
} else {
printf( "\t Error getting string value, rv=0x%08X", (int)rv );
}