[X2Go-Commits] [nx-libs] 03/18: nx-X11/programs/Xserver/hw/nxagent/Utils.h: add SAFE_FREE macro.

git-admin at x2go.org git-admin at x2go.org
Fri Jul 13 07:30:52 CEST 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x-rpm-debug
in repository nx-libs.

commit a9d65952eb10f1e2902dfe12529d8be828b12ee9
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sun Mar 18 06:52:03 2018 +0100

    nx-X11/programs/Xserver/hw/nxagent/Utils.h: add SAFE_FREE macro.
---
 nx-X11/programs/Xserver/hw/nxagent/Utils.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/nx-X11/programs/Xserver/hw/nxagent/Utils.h b/nx-X11/programs/Xserver/hw/nxagent/Utils.h
index 8a33354..d502da7 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Utils.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Utils.h
@@ -52,4 +52,6 @@ static inline const char * validateString(const char *str) {
   return str ? str : "(null)";
 }
 
+#define SAFE_FREE(ptr) do { free(ptr); ptr = NULL; } while (0)
+
 #endif /* __Utils_H__ */

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list