|
|
6872ba |
From 5a8c5768779a220d29eaeb31ca433cd8913ed876 Mon Sep 17 00:00:00 2001
|
|
|
6872ba |
From: Laine Stump <laine@laine.org>
|
|
|
6872ba |
Date: Mon, 17 Sep 2018 10:01:22 -0400
|
|
|
6872ba |
Subject: [PATCH 2/7] remove unused variable in aug_match_mac()
|
|
|
6872ba |
|
|
|
6872ba |
Apparently this wasn't caught by the compiler because it was
|
|
|
6872ba |
initialized, and that counted as a "use".
|
|
|
6872ba |
|
|
|
6872ba |
Signed-off-by: Laine Stump <laine@laine.org>
|
|
|
6872ba |
(cherry picked from commit e81812e770d4e837015d92cd7d570c3df81bda9f)
|
|
|
6872ba |
|
|
|
6872ba |
Resolves: https://bugzilla.redhat.com/1602628
|
|
|
6872ba |
Signed-off-by: Laine Stump <laine@laine.org>
|
|
|
6872ba |
---
|
|
|
6872ba |
src/dutil_linux.c | 3 +--
|
|
|
6872ba |
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
6872ba |
|
|
|
6872ba |
diff --git a/src/dutil_linux.c b/src/dutil_linux.c
|
|
|
6872ba |
index 3a75f16..ab1dd6c 100644
|
|
|
6872ba |
--- a/src/dutil_linux.c
|
|
|
6872ba |
+++ b/src/dutil_linux.c
|
|
|
6872ba |
@@ -400,7 +400,7 @@ void free_matches(int nint, char ***intf) {
|
|
|
6872ba |
/* Returns a list of all interfaces with MAC address MAC */
|
|
|
6872ba |
int aug_match_mac(struct netcf *ncf, const char *mac, char ***matches) {
|
|
|
6872ba |
int nmatches;
|
|
|
6872ba |
- char *path = NULL, *mac_lower = NULL;
|
|
|
6872ba |
+ char *mac_lower = NULL;
|
|
|
6872ba |
|
|
|
6872ba |
mac_lower = strdup(mac);
|
|
|
6872ba |
ERR_NOMEM(mac_lower == NULL, ncf);
|
|
|
6872ba |
@@ -429,7 +429,6 @@ int aug_match_mac(struct netcf *ncf, const char *mac, char ***matches) {
|
|
|
6872ba |
|
|
|
6872ba |
error:
|
|
|
6872ba |
FREE(mac_lower);
|
|
|
6872ba |
- FREE(path);
|
|
|
6872ba |
return -1;
|
|
|
6872ba |
}
|
|
|
6872ba |
|
|
|
6872ba |
--
|
|
|
6872ba |
2.18.1
|
|
|
6872ba |
|