NetworkManager r3625 - trunk/src
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r3625 - trunk/src
- Date: Thu, 1 May 2008 16:27:16 +0100 (BST)
Author: dcbw
Date: Thu May 1 15:27:15 2008
New Revision: 3625
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3625&view=rev
Log:
Don't segfault on systems using older HAL modem capabilities
Modified:
trunk/src/nm-hal-manager.c
Modified: trunk/src/nm-hal-manager.c
==============================================================================
--- trunk/src/nm-hal-manager.c (original)
+++ trunk/src/nm-hal-manager.c Thu May 1 15:27:15 2008
@@ -240,7 +240,8 @@
goto out;
capabilities = libhal_device_get_property_strlist (priv->hal_ctx, udi, "modem.command_sets", NULL);
- for (iter = capabilities; *iter; iter++) {
+ /* 'capabilites' may be NULL */
+ for (iter = capabilities; iter && *iter; iter++) {
if (!strcmp (*iter, "GSM-07.07")) {
type_gsm = TRUE;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]