projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb98d99
)
Remove erroneous assert
author
Alan T. DeKok
<aland@freeradius.org>
Sun, 14 Jul 2013 07:31:11 +0000
(09:31 +0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Sun, 14 Jul 2013 07:31:11 +0000
(09:31 +0200)
src/main/xlat.c
patch
|
blob
|
history
diff --git
a/src/main/xlat.c
b/src/main/xlat.c
index
0fbf76b
..
4d89182
100644
(file)
--- a/
src/main/xlat.c
+++ b/
src/main/xlat.c
@@
-527,7
+527,7
@@
void xlat_free(void)
rbtree_free(xlat_root);
}
-#if
1
+#if
0
#define XLAT_DEBUG(fmt, ...) printf(fmt, ## __VA_ARGS__);printf("\n")
#endif
@@
-1803,7
+1803,7
@@
static char *xlat_aprint(TALLOC_CTX *ctx, REQUEST *request, xlat_exp_t const * c
/*
* Escape the non-literals we found above.
*/
- if (escape) {
+ if (
str &&
escape) {
char *escaped;
escaped = talloc_array(ctx, char, 1024); /* FIXME: do something intelligent */
@@
-1812,7
+1812,6
@@
static char *xlat_aprint(TALLOC_CTX *ctx, REQUEST *request, xlat_exp_t const * c
str = escaped;
}
- rad_assert(str != NULL);
return str;
}