summaryrefslogtreecommitdiffstats
path: root/gatchat/gatresult.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-07-15 11:43:29 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-07-15 11:49:06 -0500
commit22ad7dc7c54966dd50c0b3907a61cd8447a63846 (patch)
tree1191da2e72598ec358d4dd8b0351e9bde1f691d5 /gatchat/gatresult.c
parent4fa4f491a475d4b9bf5773390434786dfd1230bc (diff)
downloadofono-22ad7dc7c54966dd50c0b3907a61cd8447a63846.tar.bz2
Fix range handling
Diffstat (limited to 'gatchat/gatresult.c')
-rw-r--r--gatchat/gatresult.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gatchat/gatresult.c b/gatchat/gatresult.c
index 9c382d91..389f7e82 100644
--- a/gatchat/gatresult.c
+++ b/gatchat/gatresult.c
@@ -274,15 +274,12 @@ gboolean g_at_result_iter_next_range(GAtResultIter *iter, gint *min, gint *max)
if (pos == end)
return FALSE;
- if (line[end] == ',') {
+ if (line[end] != '-') {
high = low;
goto out;
}
- if (line[end] == '-')
- pos = end = end + 1;
- else
- return FALSE;
+ pos = end = end + 1;
while (line[end] >= '0' && line[end] <= '9') {
high = high * 10 + (int)(line[end] - '0');