summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 55f6919)
raw | patch | inline | side by side (parent: 55f6919)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 13 Sep 2016 20:31:15 +0000 (22:31 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 13 Sep 2016 20:31:15 +0000 (22:31 +0200) |
t/unit/utils/dbi_test.c | patch | blob | history |
index ebc34f628384e48e8cff5557f158eff41e789438..6fb2938e75f1b64319d268cd1a904ae7a902bc80 100644 (file)
--- a/t/unit/utils/dbi_test.c
+++ b/t/unit/utils/dbi_test.c
int
dbi_initialize_r(const char __attribute__((unused)) *driverdir, dbi_inst *pInst)
{
- *pInst = INST;
+ if (pInst)
+ *pInst = INST;
return 0;
} /* dbi_initialize_r */
void
dbi_shutdown(void)
{
- dbi_shutdown_r(NULL);
+ dbi_shutdown_r(INST);
} /* dbi_shutdown */
dbi_driver
dbi_driver_open(const char *name)
{
- return dbi_driver_open_r(name, NULL);
+ return dbi_driver_open_r(name, INST);
} /* dbi_driver_open */
dbi_driver
dbi_driver_list(dbi_driver curr)
{
- return dbi_driver_list_r(curr, NULL);
+ return dbi_driver_list_r(curr, INST);
} /* dbi_driver_list */
#endif