[PATCH] fix stop condition of while loop
- From: Ludwig Nussel <ludwig nussel suse de>
- To: networkmanager-list gnome org
- Cc: Ludwig Nussel <ludwig nussel suse de>
- Subject: [PATCH] fix stop condition of while loop
- Date: Fri, 7 Oct 2011 15:21:55 +0200
---
src/supplicant-manager/nm-supplicant-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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;
--
1.7.3.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]