Changeset: f93084f7608f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/f93084f7608f
Modified Files:
monetdb5/modules/atoms/url.c
Branch: urlfuncs
Log Message:
fix for return value
diffs (23 lines):
diff --git a/monetdb5/modules/atoms/url.c b/monetdb5/modules/atoms/url.c
--- a/monetdb5/modules/atoms/url.c
+++ b/monetdb5/modules/atoms/url.c
@@ -828,7 +828,6 @@ extractURLHost(str *retval, str *url, bo
const char *s;
const char *h = NULL;
const char *p = NULL;
- *retval = GDKstrdup(str_nil);
if ((url != NULL || *url != NULL) && !strNil(*url)) {
if ((s = skip_scheme(*url)) != NULL &&
@@ -851,7 +850,11 @@ extractURLHost(str *retval, str *url, bo
} else {
throw(MAL, "url.getURLHost", SQLSTATE(HY013)
MAL_MALLOC_FAIL);
}
+ } else {
+ *retval = GDKstrdup(str_nil);
}
+ } else {
+ *retval = GDKstrdup(str_nil);
}
return MAL_SUCCEED;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]