summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2015-07-01 16:35:52 +0200
committerLubomir Rintel <lkundrak@v3.sk>2015-07-01 16:35:52 +0200
commit295c9818b099f2fdb2f99ff809d6c6372aa1d96c (patch)
tree6fe62dac278c5bbb20dd4f95a0205bb4dc51c704
parent4ffd57f83d9cc36c8908c42bcf3d452392bb0e60 (diff)
downloadNetworkManager-295c9818b099f2fdb2f99ff809d6c6372aa1d96c.tar.gz
devices,platform: fix build with gcc
Warnings about missing initializers.
-rw-r--r--src/devices/nm-device.c4
-rw-r--r--src/platform/nm-linux-platform.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index a317ca6ac8..430c6f28c3 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -6670,8 +6670,8 @@ static gboolean
spawn_ping (NMDevice *self)
{
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self);
- gs_free char *str_timeout;
- gs_free char *tmp_str;
+ gs_free char *str_timeout = NULL;
+ gs_free char *tmp_str = NULL;
const char *args[] = { priv->gw_ping.binary, "-I", nm_device_get_ip_iface (self),
"-c", "1", "-w", NULL, priv->gw_ping.address, NULL };
gs_free_error GError *error = NULL;
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c
index 9642484513..f866c61017 100644
--- a/src/platform/nm-linux-platform.c
+++ b/src/platform/nm-linux-platform.c
@@ -993,7 +993,7 @@ _nmp_vt_cmd_plobj_init_from_nl_link (NMPlatform *platform, NMPlatformObject *_ob
const char *kind;
gboolean completed_from_cache_val = FALSE;
gboolean *completed_from_cache = complete_from_cache ? &completed_from_cache_val : NULL;
- const NMPObject *link_cached;
+ const NMPObject *link_cached = NULL;
nm_assert (memcmp (obj, ((char [sizeof (NMPObjectLink)]) { 0 }), sizeof (NMPObjectLink)) == 0);