summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f8e9db2)
raw | patch | inline | side by side (parent: f8e9db2)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 28 Mar 2009 08:42:23 +0000 (09:42 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 28 Mar 2009 08:42:23 +0000 (09:42 +0100) |
src/mysql.c | patch | blob | history |
diff --git a/src/mysql.c b/src/mysql.c
index 0d3cb7f8b18ed743dc3449b9fcc37589cf965540..a129f40fab18ba8a6f47f8b69b56dc1010b5167e 100644 (file)
--- a/src/mysql.c
+++ b/src/mysql.c
return (status);
}
assert (db->instance != NULL);
- db->database = strdup (db->instance);
}
else
{
db->port);
status = -1;
}
- if (db->database == NULL)
- {
- ERROR ("mysql plugin: No `Database' configured");
- status = -1;
- }
break;
} /* while (status == 0) */
user_data_t ud;
char cb_name[DATA_MAX_NAME_LEN];
- DEBUG ("mysql plugin: Registering new read callback: %s", db->database);
+ DEBUG ("mysql plugin: Registering new read callback: %s",
+ (db->database != NULL) ? db->database : "<default>");
memset (&ud, 0, sizeof (ud));
ud.data = (void *) db;