git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4973
91ce42f0-d328-0410-95d8-
f526ca767f89
Mmsg(mdb->cmd, "SELECT Name from Storage WHERE StorageId=%s",
edit_int64(SId[i], ed1));
if (QUERY_DB(jcr, mdb, mdb->cmd)) {
- if ((row = sql_fetch_row(mdb)) != NULL) {
+ if ((row = sql_fetch_row(mdb)) && row[0]) {
bstrncpy(Vols[i].Storage, row[0], MAX_NAME_LENGTH);
}
}
Technical notes on version 2.1
General:
+04Jun07
+kes Fix a seg fault in the PostgreSQL driver dereferencing a NULL pointer.
03Jun07
kes Implement SQLITE3_INIT_QUERY in version.h that can do an initial
query for SQLite3. Use it to set PRAGMA synchronous = OFF. This