mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-02 08:38:19 +02:00
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:
parent
21ad2cf867
commit
a0f0344809
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue