projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa71d09
)
Kill 'Suggest parantheses around truth value' warn
author
Denis Kenzior
<denkenz@gmail.com>
Tue, 21 Jul 2009 18:10:13 +0000
(13:10 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Mon, 27 Jul 2009 22:09:49 +0000
(17:09 -0500)
src/sim.c
patch
|
blob
|
history
diff --git
a/src/sim.c
b/src/sim.c
index
7f905b1
..
2d15adf
100644
(file)
--- a/
src/sim.c
+++ b/
src/sim.c
@@
-286,7
+286,7
@@
static int create_dirs(const char *filename, const mode_t mode)
dir = g_malloc(strlen(filename) + 1);
strcpy(dir, "/");
- for (prev = filename;
next = strchr(prev + 1, '/'
); prev = next)
+ for (prev = filename;
(next = strchr(prev + 1, '/')
); prev = next)
if (next > prev + 1) {
strncat(dir, prev + 1, next - prev);