Allow AppTransports with empty names again (the plug-in performs the App lookup)

This commit is contained in:
Pierre Pronchery 2014-04-28 05:36:01 +08:00
parent a283ded795
commit cfbcac054c

View File

@ -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)