From cfbcac054c3b793897e3ffe34e2e31a0d1e808f4 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 28 Apr 2014 05:36:01 +0800 Subject: [PATCH] Allow AppTransports with empty names again (the plug-in performs the App lookup) --- src/apptransport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apptransport.c b/src/apptransport.c index 82692e1..28feeae 100644 --- a/src/apptransport.c +++ b/src/apptransport.c @@ -185,7 +185,7 @@ static String * _new_app_name(char const * app, char const * name) error_set_code(1, "%s", "Invalid App"); return NULL; } - if(name != NULL && name[0] != '\0') + if(name != NULL) return string_new(name); /* obtain the desired transport and name from the environment */ if((var = string_new_append("APPSERVER_", app, NULL)) == NULL)