Re: [PATCH] fix stop condition of while loop



On Fri, 2011-10-07 at 15:21 +0200, Ludwig Nussel wrote:
> ---
>  src/supplicant-manager/nm-supplicant-manager.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.  Stupid mistake on my part.

Dan

> diff --git a/src/supplicant-manager/nm-supplicant-manager.c b/src/supplicant-manager/nm-supplicant-manager.c
> index 0e9fc20..349f722 100644
> --- a/src/supplicant-manager/nm-supplicant-manager.c
> +++ b/src/supplicant-manager/nm-supplicant-manager.c
> @@ -140,7 +140,7 @@ get_eap_methods_reply (DBusGProxy *proxy,
>  	                           G_TYPE_INVALID)) {
>  		if (G_VALUE_HOLDS (&value, G_TYPE_STRV)) {
>  			iter = g_value_get_boxed (&value);
> -			while (iter) {
> +			while (iter && *iter) {
>  				if (strcasecmp (*iter++, "FAST") == 0) {
>  					priv->fast_supported = TRUE;
>  					break;




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]