projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d82804
)
Fix uninitialized use of bufpos
author
Denis Kenzior
<denkenz@gmail.com>
Wed, 1 Jul 2009 15:48:03 +0000
(10:48 -0500)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 1 Jul 2009 21:55:22 +0000
(14:55 -0700)
gatchat/gatresult.c
patch
|
blob
|
history
diff --git
a/gatchat/gatresult.c
b/gatchat/gatresult.c
index
7a98308
..
9c382d9
100644
(file)
--- a/
gatchat/gatresult.c
+++ b/
gatchat/gatresult.c
@@
-174,6
+174,7
@@
gboolean g_at_result_iter_next_hexstring(GAtResultIter *iter,
len = strlen(line);
pos = iter->line_pos;
+ bufpos = iter->buf + pos;
/* Omitted string */
if (line[pos] == ',') {
@@
-192,7
+193,7
@@
gboolean g_at_result_iter_next_hexstring(GAtResultIter *iter,
*length = (end - pos) / 2;
- for (
bufpos = iter->buf + pos
; pos < end; pos += 2)
+ for (; pos < end; pos += 2)
sscanf(line + pos, "%02hhx", bufpos++);
out: