libmbim-glib: handle explicit '+' on positive numbers

This commit is contained in:
David McCullough
2014-07-29 14:16:31 -05:00
committed by Dan Williams
parent f203b1bf00
commit b8138d93f5
+1 -1
View File
@@ -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;
}