core: fix an assertion in nm_default_wired_connection_new()

nm_device_get_hw_address() has to be called with out_len
initialized to 0.
This commit is contained in:
Jiří Klimeš 2013-04-10 18:55:28 +02:00
parent caed13b3ef
commit ac697a912e

View file

@ -98,7 +98,7 @@ nm_default_wired_connection_new (NMDevice *device,
NMSetting *setting;
char *uuid;
const guint8 *hw_address;
guint len;
guint len = 0;
GByteArray *mac;
g_return_val_if_fail (NM_IS_DEVICE_ETHERNET (device), NULL);