[X2Go-Commits] [nx-libs] 135/219: Utils.h: add SAFE_free macro
git-admin at x2go.org
git-admin at x2go.org
Sat Sep 28 12:10:38 CEST 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit 1330167fa2026e4d2ad1d470ebfde9977d131ab3
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Tue Jul 23 20:08:16 2019 +0200
Utils.h: add SAFE_free macro
---
nx-X11/programs/Xserver/hw/nxagent/Utils.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Utils.h b/nx-X11/programs/Xserver/hw/nxagent/Utils.h
index c0ad03345..0aebda839 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Utils.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Utils.h
@@ -45,5 +45,6 @@ static inline const char * validateString(const char *str) {
}
#define SAFE_XFree(what) do {if (what) {XFree(what); what = NULL;}} while (0)
+#define SAFE_free(what) do {free(what); what = 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