This makes dblink pass its installcheck test on platforms where snprintf(data, len, "%s", NULL) crash.
The code was trying to find a connection by name when it already had an unnamed connection and did not have a name to search with.
Kris Jurka