Fix for SVACE defects 88/89288/1 accepted/tizen/common/20160923.160656 accepted/tizen/ivi/20160925.234318 accepted/tizen/mobile/20160925.234332 accepted/tizen/tv/20160925.234328 accepted/tizen/wearable/20160925.234326 submit/tizen/20160923.045958
authorSeungbae Shin <seungbae.shin@samsung.com>
Fri, 23 Sep 2016 04:35:57 +0000 (13:35 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Fri, 23 Sep 2016 04:36:29 +0000 (13:36 +0900)
[Version] 5.0.74
[Profile] Common
[Issue Type] SVACE

Change-Id: Ib0eb97f27c41b5d39baaa81ef508d576f2c7e11a

packaging/pulseaudio-modules-tizen.spec
src/tizen-device-def.c

index 0d0d42b..a2df63c 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.73
+Version:          5.0.74
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index f0f5b82..9eb713c 100644 (file)
 #define DEVICE_DIRECTION_STR_BOTH           "both"
 
 static inline bool pa_safe_streq2(const char *a, const char *b) {
-    if (a == NULL || b == NULL)
-        return a == b;
-    else if (a == NULL || b != NULL)
-        return false;
-    else if (a != NULL || b == NULL)
-        return false;
-    return pa_streq(a, b);
+    if (a && b)
+        return pa_streq(a, b);
+    if (!a && !b)
+        return true;
+    return false;
 }
 
 bool device_profile_is_equal(const char *device_profile1, const char *device_profile2) {
-    if (!device_profile1 && !device_profile2)
-        return true;
-    else if (!device_profile1 || !device_profile2)
-        return false;
-    else if (pa_streq(device_profile1, device_profile2))
-        return true;
-    else
-        return false;
+    return pa_safe_streq2(device_profile1, device_profile2);
 }
 
 bool device_type_is_equal(const char *device_type1, const char *device_profile1, const char *device_type2, const char *device_profile2) {