Quiet warning; minimal checking in add_one_setting_to_hash()

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2809 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2007-09-14 19:32:59 +00:00
parent 21ad2cf867
commit a0f0344809

View file

@ -2,6 +2,7 @@
#include <dbus/dbus-glib.h>
#include <string.h>
#include "nm-connection.h"
#include "nm-utils.h"
typedef struct {
GHashTable *settings;
@ -194,6 +195,9 @@ add_one_setting_to_hash (gpointer key, gpointer data, gpointer user_data)
GHashTable *connection_hash = (GHashTable *) user_data;
GHashTable *setting_hash;
g_return_if_fail (setting != NULL);
g_return_if_fail (connection_hash != NULL);
setting_hash = nm_setting_to_hash (setting);
if (setting_hash)
g_hash_table_insert (connection_hash,