Fix svace issue: DEREF_OF_NULL.EX 99/318999/1 accepted/tizen/unified/20250203.162335
authorJeongmo Yang <jm80.yang@samsung.com>
Mon, 3 Feb 2025 03:53:11 +0000 (12:53 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Mon, 3 Feb 2025 03:53:11 +0000 (12:53 +0900)
[Version] 1.1.6
[Issue Type] Svace

Change-Id: I508da4f7c5df2903043db20ca1fb587531b9fcd5
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/capi-media-codec.spec
src/media_codec_rm.c

index 14310dc8d748ccae3e3d9029eda3c42758fa37b3..8522d60bda2ebd2ce8f63916e2292de9afa8e598 100644 (file)
@@ -4,7 +4,7 @@
 
 Name:       capi-media-codec
 Summary:    A Media Codec library in Tizen Native API
-Version:    1.1.5
+Version:    1.1.6
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index f7c873938970059d4a60c45030ded01a2921f04c..edf933d087b4f588dcae1fa4e0419a929a73e9df 100644 (file)
@@ -64,7 +64,7 @@ __mediacodec_get_appid_by_pid(int pid, char *name, size_t size)
        cmdline = g_strdup_printf("/proc/%d/cmdline", (int)pid);
 
        if (!g_file_get_contents(cmdline, &contents, NULL, &error)) {
-               LOGE("error : %s", error->message);
+               LOGE("error : %s", error ? error->message : "NULL");
                return MEDIACODEC_ERROR_INVALID_OPERATION;
        }