[PATCH 1/2] Handle explicit '+' on positive numbers

Dan Williams dcbw at redhat.com
Tue Jul 29 12:17:31 PDT 2014


On Tue, 2014-07-29 at 09:34 +1000, David McCullough wrote:
> ---
>  libmm-glib/mm-common-helpers.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Pushed, thanks!

Dan

> diff --git a/libmm-glib/mm-common-helpers.c b/libmm-glib/mm-common-helpers.c
> index a8927fb..fbaa81d 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;
>      }
>  




More information about the ModemManager-devel mailing list