summaryrefslogtreecommitdiffstats
path: root/source/libsmb
diff options
context:
space:
mode:
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/unexpected.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/unexpected.c b/source/libsmb/unexpected.c
index b77e7490a0d..6a54250506d 100644
--- a/source/libsmb/unexpected.c
+++ b/source/libsmb/unexpected.c
@@ -147,7 +147,7 @@ check for a particular packet in the unexpected packet queue
struct packet_struct *receive_unexpected(enum packet_type packet_type, int id,
char *mailslot_name)
{
- TDB_CONTEXT *tdb2;
+ TDB_CONTEXT *tdb2 = NULL;
tdb2 = tdb_open_log(lock_path("unexpected.tdb"), 0, 0, O_RDONLY, 0);
if (!tdb2) return NULL;