Fixing the build.

Change-Id: I89daa503029491e6f1a8321f7e45c9439315ad23
diff --git a/media/jni/android_media_MediaMetadataRetriever.cpp b/media/jni/android_media_MediaMetadataRetriever.cpp
index fe44009..5d9a3c5 100644
--- a/media/jni/android_media_MediaMetadataRetriever.cpp
+++ b/media/jni/android_media_MediaMetadataRetriever.cpp
@@ -98,11 +98,11 @@
     }
 
     const char *tmp = env->GetStringUTFChars(path, NULL);
-    if (!pathStr) {  // OutOfMemoryError exception already thrown
+    if (!tmp) {  // OutOfMemoryError exception already thrown
         return;
     }
 
-    String8 pathStr = tmp;
+    String8 pathStr(tmp);
 
     env->ReleaseStringUTFChars(path, tmp);
     tmp = NULL;