diff options
author | Jeremy Allison <jra@samba.org> | 2002-11-07 02:38:42 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-11-07 02:38:42 +0000 |
commit | 47955b2f6cd10ac690705d322a8862c23f18072c (patch) | |
tree | 457151a2a3cc4ac3598c7cb45850b6dd598de03a /source3/tdb/tdb.c | |
parent | bcf0c11e3d4477eb029a0259ed17db9ddbe706d5 (diff) | |
download | samba-47955b2f6cd10ac690705d322a8862c23f18072c.tar.gz samba-47955b2f6cd10ac690705d322a8862c23f18072c.tar.bz2 samba-47955b2f6cd10ac690705d322a8862c23f18072c.zip |
Merge of scalable printing code fix... Needs testing.
Also tidied up some of Richard's code (I don't think he uses the compiler
flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like
I do :-) :-).
Jeremy.
(This used to be commit 10024ed06e9d91f24fdc78d59eef2f76bf395438)
Diffstat (limited to 'source3/tdb/tdb.c')
-rw-r--r-- | source3/tdb/tdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c index c57d23cb6f..2a6dca16a8 100644 --- a/source3/tdb/tdb.c +++ b/source3/tdb/tdb.c @@ -1442,7 +1442,8 @@ int tdb_store(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf, int flag) } memcpy(p, key.dptr, key.dsize); - memcpy(p+key.dsize, dbuf.dptr, dbuf.dsize); + if (dbuf.dsize) + memcpy(p+key.dsize, dbuf.dptr, dbuf.dsize); /* now we're into insert / modify / replace of a record which * we know could not be optimised by an in-place store (for |