From b8138d93f5b56ea5681a6f5dd3629a4ec1a78879 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Tue, 29 Jul 2014 09:34:44 +1000 Subject: [PATCH] libmbim-glib: handle explicit '+' on positive numbers --- libmm-glib/mm-common-helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmm-glib/mm-common-helpers.c b/libmm-glib/mm-common-helpers.c index a8927fb9..fbaa81d1 100644 --- a/libmm-glib/mm-common-helpers.c +++ b/libmm-glib/mm-common-helpers.c @@ -1254,7 +1254,7 @@ mm_get_int_from_str (const gchar *str, return FALSE; for (num = 0; str[num]; num++) { - if (str[num] != '-' && !g_ascii_isdigit (str[num])) + if (str[num] != '+' && str[num] != '-' && !g_ascii_isdigit (str[num])) return FALSE; }