diff --git a/widget/src/gtk/nsSound.cpp b/widget/src/gtk/nsSound.cpp index c687dc3d06c8..20e3286a3373 100644 --- a/widget/src/gtk/nsSound.cpp +++ b/widget/src/gtk/nsSound.cpp @@ -250,7 +250,7 @@ NS_METHOD nsSound::Play(nsIURI *aURI) nsFileSpec chromeFile; if (NS_SUCCEEDED(rv) && aUrl) { rv = aUrl->GetFilePath(getter_Copies(tempPath)); - if ( NS_FAILED(rv) || tempPath == NULL ) { + if ( NS_FAILED(rv) || !tempPath ) { printf( "Sound: unable to get path on URI\n" ); return NS_ERROR_FAILURE; }