(dbm_get): set dsize to 0 on failure.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21623 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -114,9 +114,10 @@ dbm_get (DB *db, int flags) | ||||
| #ifdef HAVE_DB3 | ||||
|     if(cursor == NULL)  | ||||
| 	db->cursor(db, NULL, &cursor, 0); | ||||
|     if(cursor->c_get(cursor, &key, &value, flags) != 0)  | ||||
|     if(cursor->c_get(cursor, &key, &value, flags) != 0) { | ||||
| 	datum.dptr = NULL; | ||||
|     else  | ||||
| 	datum.0 = NULL; | ||||
|     } else  | ||||
| 	DBT2DATUM(&value, &datum); | ||||
| #else | ||||
|     db->seq(db, &key, &value, flags); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand