let "(nil)" be backup NULL trio solution
authorMiloš Mulač <mulac@civ.zcu.cz>
Tue, 12 Jun 2007 11:43:46 +0000 (11:43 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Tue, 12 Jun 2007 11:43:46 +0000 (11:43 +0000)
- real escaping need to be done in functions escaping UML

org.glite.lb.common/src/context.c
org.glite.lb.common/src/trio.c

index 14f4774..3614795 100644 (file)
@@ -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()");
        }
index 700a7e2..d46736e 100644 (file)
@@ -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;