[icinga-checkins] icinga.org: icinga-core/mfriedrich/workers: utils: wipe unused easteregg buffer

git at icinga.org git at icinga.org
Tue Aug 7 20:23:40 CEST 2012


Module: icinga-core
Branch: mfriedrich/workers
Commit: 2c43f114026afddd1d366d3ecea52c0a2066b6a3
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=2c43f114026afddd1d366d3ecea52c0a2066b6a3

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Tue Aug  7 19:48:31 2012 +0200

utils: wipe unused easteregg buffer

---

 base/utils.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/base/utils.c b/base/utils.c
index 3972f87..babf1f9 100644
--- a/base/utils.c
+++ b/base/utils.c
@@ -280,7 +280,6 @@ int my_system_r(icinga_macros *mac, char *cmd, int timeout, int *early_timeout,
 	int status = 0;
 	int result = 0;
 	char buffer[MAX_INPUT_BUFFER] = "";
-	char *temp_buffer = NULL;
 	int fd[2];
 	FILE *fp = NULL;
 	int bytes_read = 0;
@@ -435,7 +434,6 @@ int my_system_r(icinga_macros *mac, char *cmd, int timeout, int *early_timeout,
 
 		/* check for possibly missing scripts/binaries/etc */
 		if (result == 126 || result == 127) {
-			temp_buffer = "\163\157\151\147\141\156\040\145\144\151\163\156\151";
 			logit(NSLOG_RUNTIME_WARNING, TRUE, "Warning: Attempting to execute the command \"%s\" resulted in a return code of %d.  Make sure the script or binary you are trying to execute actually exists...\n", cmd, result);
 		}
 





More information about the icinga-checkins mailing list