From a3d77a25d034aa72bb59b3092a93132cccce2d56 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(-) 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