From f00b2e22fcc3cf9db8ceae55fcf4d1e1976dd3b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sun, 21 Feb 2010 20:04:39 +0000 Subject: [PATCH] * init pointer to NULL, try not to free null pointers. this won't be fixeable it will have to wait till the rework --- webcit/roomops.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webcit/roomops.c b/webcit/roomops.c index 3d5f7c560..06a758d47 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -1074,7 +1074,7 @@ void display_editroom(void) int i, j; char *tab; char *shared_with; - char *not_shared_with; + char *not_shared_with = NULL; int roompolicy = 0; int roomvalue = 0; int floorpolicy = 0; @@ -1619,7 +1619,9 @@ void display_editroom(void) wc_printf(""); } - free (not_shared_with); + if (not_shared_with != NULL) + free (not_shared_with); + /* Mailing list management */ if (!strcmp(tab, "listserv")) { room_states RoomFlags; -- 2.39.2