Skip to content

Commit

Permalink
dbmi_client_start_driver: check if driver name is null or empty (#2131)…
Browse files Browse the repository at this point in the history
… (#2133)
  • Loading branch information
ninsbl committed Jan 27, 2022
1 parent ac1dd84 commit 55572ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db/dbmi_client/start.c
Expand Up @@ -94,7 +94,7 @@ dbDriver *db_start_driver(const char *name)
return (dbDriver *) NULL;

/* if name is empty use connection.driverName, added by RB 4/2000 */
if (name[0] == '\0') {
if (name == NULL || name[0] == '\0') {
db_get_connection(&connection);
if (NULL == (name = connection.driverName))
return (dbDriver *) NULL;
Expand Down

0 comments on commit 55572ba

Please sign in to comment.