]> git.ipfire.org Git - thirdparty/samba.git/commit
s4:torture: Add missing NULL checks in spoolss.c
authorAndreas Schneider <asn@samba.org>
Tue, 30 Apr 2024 15:31:00 +0000 (17:31 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 13 Jun 2024 12:25:37 +0000 (12:25 +0000)
commit4a48148a7d830fb0ec6884f39b2ab1e5d41f2181
treef8d7fc8305578a5ed2b9afe9b2fa903f0e9ebe3a
parent8d5b40296f89aee6c9a364017b0cb750cf0b7966
s4:torture: Add missing NULL checks in spoolss.c

source4/torture/rpc/spoolss.c: In function
  ‘check_printer_driver_file.isra’:
source4/torture/rpc/spoolss.c:10850:58: error: ‘%s’ directive argument
  is null [-Werror=format-overflow=]
10850 |         const char *remote_name = talloc_asprintf(tctx, "%s\\%d\\%s",
      |                                                          ^~

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/torture/rpc/spoolss.c