VSC__ASSERT (error != NULL);
VSC__ASSERT (! error->occured);
- VSC__ASSERT (remote_url != NULL);
VSC__ASSERT (method_name_lookup_function != NULL);
VSC__ASSERT (argument_name_lookup_function != NULL);
_method_name_lookup_function = method_name_lookup_function;
_argument_name_lookup_function = argument_name_lookup_function;
- _remote_url = vsc_strdup (error, remote_url);
+ if (remote_url != NULL) {
+ _remote_url = vsc_strdup (error, remote_url);
- if (error->occured) {
- VSC__APPEND_ERROR0 (error, VSC__ERROR_CODE__TRACE);
- return;
+ if (error->occured) {
+ VSC__APPEND_ERROR0 (error, VSC__ERROR_CODE__TRACE);
+ return;
+ }
+ } else {
+ _remote_url = NULL;
}
/*