diff options
Diffstat (limited to 'src/util/virnetdev.c')
-rw-r--r-- | src/util/virnetdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/virnetdev.c b/src/util/virnetdev.c index d8ae5fbc5f..5391f0030b 100644 --- a/src/util/virnetdev.c +++ b/src/util/virnetdev.c @@ -836,7 +836,7 @@ char *virNetDevGetName(int ifindex) goto cleanup; } - ignore_value(VIR_STRDUP(ifname, name)); + ifname = g_strdup(name); cleanup: return ifname; |