projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05593a6
)
check _db for NULL
author
Klaus Kaempf
<kkaempf@suse.de>
Sun, 26 Feb 2006 16:36:18 +0000
(16:36 +0000)
committer
Klaus Kaempf
<kkaempf@suse.de>
Sun, 26 Feb 2006 16:36:18 +0000
(16:36 +0000)
zmd/backend/dbsource/DbAccess.cc
patch
|
blob
|
history
diff --git
a/zmd/backend/dbsource/DbAccess.cc
b/zmd/backend/dbsource/DbAccess.cc
index
78f3d46
..
fdc9f24
100644
(file)
--- a/
zmd/backend/dbsource/DbAccess.cc
+++ b/
zmd/backend/dbsource/DbAccess.cc
@@
-401,7
+401,8
@@
DbAccess::openDb( bool for_writing )
}
int rc = sqlite3_open (_dbfile.c_str(), &_db);
- if (rc != SQLITE_OK) {
+ if (rc != SQLITE_OK
+ || _db == NULL) {
ERR << "Can not open SQL database: " << sqlite3_errmsg (_db) << endl;
return false;
}