From 22ad7dc7c54966dd50c0b3907a61cd8447a63846 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 15 Jul 2009 11:43:29 -0500 Subject: Fix range handling --- gatchat/gatresult.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'gatchat/gatresult.c') 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'); -- cgit v1.2.3