summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-06-28 10:49:55 +0200
committerAndreas Schneider <asn@samba.org>2010-06-28 12:56:13 +0200
commit06a1766315e775062ba5277be0f739e735cc3547 (patch)
tree6f19efe501f3cd77bac1a272a7ce21c25b5d4ead /source3/smbd
parent459a1d58b1b5f90320a843234067654959fab8b1 (diff)
downloadsamba-06a1766315e775062ba5277be0f739e735cc3547.tar.gz
samba-06a1766315e775062ba5277be0f739e735cc3547.tar.bz2
samba-06a1766315e775062ba5277be0f739e735cc3547.zip
s3-lanman: Make sure that job_info is not undefined.
Found by clang-analyzer.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/lanman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index 72d488ecab..501c8a5d48 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -774,7 +774,7 @@ static bool api_DosPrintQGetInfo(struct smbd_server_connection *sconn,
struct policy_handle handle;
struct spoolss_DevmodeContainer devmode_ctr;
union spoolss_DriverInfo driver_info;
- union spoolss_JobInfo *job_info;
+ union spoolss_JobInfo *job_info = NULL;
union spoolss_PrinterInfo printer_info;
if (!str1 || !str2 || !p) {