projects
/
framework
/
web
/
wrt-commons.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61a3315
)
[Prevent] Deleted array to 0 comparison.
author
Jan Olszak
<j.olszak@samsung.com>
Fri, 28 Dec 2012 08:25:21 +0000
(09:25 +0100)
committer
Gerrit Code Review
<gerrit2@kim11>
Mon, 31 Dec 2012 11:16:12 +0000
(20:16 +0900)
[Issue] Array compared against 0
[Bug] N/A
[Cause] N/A
[Solution] Deleted.
[Verification] Build commons.
Change-Id: Ib9751d79fb509869ace273f4d9c1ea39ecc372e2
modules/utils/src/wrt_global_settings.cpp
patch
|
blob
|
history
diff --git
a/modules/utils/src/wrt_global_settings.cpp
b/modules/utils/src/wrt_global_settings.cpp
index
9cc9c56
..
9428fb3
100644
(file)
--- a/
modules/utils/src/wrt_global_settings.cpp
+++ b/
modules/utils/src/wrt_global_settings.cpp
@@
-67,7
+67,7
@@
MachineType getMachineType()
// get current machine name
struct utsname u;
if (0 == uname(&u)) {
- if (
(!u.machine) || (0 == strlen(u.machine)
)) {
+ if (
0 == strlen(u.machine
)) {
return MACHINE_TYPE_UNKNOWN;
} else {
// If current machine is emul,