From e7f10fe49502d13b6e845a2e2e508845bbbad84a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Tue, 12 Jun 2007 11:43:46 +0000 Subject: [PATCH] let "(nil)" be backup NULL trio solution - real escaping need to be done in functions escaping UML --- org.glite.lb.common/src/context.c | 1 + org.glite.lb.common/src/trio.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.common/src/context.c b/org.glite.lb.common/src/context.c index 14f4774..3614795 100644 --- a/org.glite.lb.common/src/context.c +++ b/org.glite.lb.common/src/context.c @@ -475,6 +475,7 @@ int edg_wll_GenerateSubjobIds( retjobs == NULL) return edg_wll_SetError(ctx, ENOMEM, NULL); + // XXX: nasty! add correct escaping of NULL if ( !seed || !strcmp(seed, "(nil)") ) { intseed = strdup("edg_wll_GenerateSubjobIds()"); } diff --git a/org.glite.lb.common/src/trio.c b/org.glite.lb.common/src/trio.c index 700a7e2..d46736e 100644 --- a/org.glite.lb.common/src/trio.c +++ b/org.glite.lb.common/src/trio.c @@ -672,7 +672,7 @@ typedef struct _userdef_T { * Internal variables */ -static const char null[] = ""; +static const char null[] = "(nil)"; #if defined(USE_LOCALE) static struct lconv *internalLocaleValues = NULL; -- 1.8.2.3