First of all, we can use GDKstrdup instead of GDKmalloc/strcpy. Second of all, we already know res != NULL (since it is dereferenced). What's interesting is whether *res is NULL.
First of all, we can use GDKstrdup instead of GDKmalloc/strcpy.
Second of all, we already know res != NULL (since it is dereferenced).
What's interesting is whether *res is NULL.

Found by Coverity.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb