diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-16 20:00:51 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-16 20:00:51 +0000 |
commit | 9d56ca219fb7af1c209458f81a8ce35a1b6afd28 (patch) | |
tree | f30d9c4f8ed84edaf1d16298ac8dcb2d2b9e2ecc /src/db.cc | |
parent | b9ecadee6e32eddac07d09a228f0dda2b340c7ac (diff) |
* Substitute fixes.
Diffstat (limited to 'src/db.cc')
-rw-r--r-- | src/db.cc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -65,7 +65,10 @@ bool queryDB(const string & filename, const string & dbname, err = db->get(0, &kt, &dt, 0); if (err) return false; - data = string((char *) dt.get_data(), dt.get_size()); + if (!dt.get_data()) + data = ""; + else + data = string((char *) dt.get_data(), dt.get_size()); } catch (DbException e) { rethrow(e); } |