[netcf-devel] [PATCH 4/4] * src/netcf.c (ncf_if_free): do not clear the error flag

David Lutterkort lutter at redhat.com
Tue Sep 15 17:54:29 UTC 2009


Allow calling ncf_if_free after an error in another ncf_* function happened
without losing that error. That makes unwinding from an error simpler for
application.
---
 src/netcf.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/netcf.c b/src/netcf.c
index ad88c62..7ca4fd9 100644
--- a/src/netcf.c
+++ b/src/netcf.c
@@ -207,7 +207,6 @@ void ncf_if_free(struct netcf_if *nif) {
     if (nif == NULL)
         return;
 
-    API_ENTRY(nif->ncf);
     unref(nif, netcf_if);
 }
 
-- 
1.6.2.5



More information about the netcf-devel mailing list