[icinga-checkins] icinga.org: icinga-core/master: base/utils.c: typo-fix s/escape_newlines==/ escape_newlines_please==/ (Andreas Ericsson)

git at icinga.org git at icinga.org
Wed May 19 13:41:52 CEST 2010


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

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Wed May 12 18:47:15 2010 +0200

base/utils.c: typo-fix s/escape_newlines==/escape_newlines_please==/ (Andreas Ericsson)

[--snip--]
Previously we were evaluating the address of a function rather than
the function parameter. Obviously, that was quite bogus.
[--snip--]

yep, true. but wtf on the variable name ...

fixes #396

---

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

diff --git a/Changelog b/Changelog
index f48cf02..e0dc556 100644
--- a/Changelog
+++ b/Changelog
@@ -27,6 +27,7 @@ FIXES
 * core: revamp logging somewhat (Andreas Ericsson)
 * core: create logging.h, with stubs for the common function in cgiutils.c (Andreas Ericsson)
 * core: Janitor patch: Remove unused variables (Andreas Ericsson)
+* core: base/utils.c: typo-fix s/escape_newlines==/escape_newlines_please==/ (Andreas Ericsson)
 
 * idoutils: Host DB inserts use string 'NULL\n' instead of NULL (William Preston)
 * idoutils: ndo2db_get_object_id fails to return existing IDs (William Preston)
diff --git a/base/utils.c b/base/utils.c
index 8b1e022..4ebbf33 100644
--- a/base/utils.c
+++ b/base/utils.c
@@ -2715,7 +2715,7 @@ int parse_check_output(char *buf, char **short_output, char **long_output, char
 	/* save long output */
 	if(long_output && (db1.buf && strcmp(db1.buf,""))){
 
-		if(escape_newlines==FALSE)
+		if(escape_newlines_please==FALSE)
 			*long_output=(char *)strdup(db1.buf);
 
 		else{





More information about the icinga-checkins mailing list