From 046de055215615697619452f9735cfad01fdbb03 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 3 Jun 2019 11:00:01 +0200 Subject: [PATCH] s3:modules: Put debug msg into the if clause checking the strings exists error: '%s' directive argument is null [-Werror=format-overflow=] Signed-off-by: Andreas Schneider Reviewed-by: Amitay Isaacs --- source3/modules/vfs_ceph_snapshots.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/modules/vfs_ceph_snapshots.c b/source3/modules/vfs_ceph_snapshots.c index 4183069a5c2..0012962ac97 100644 --- a/source3/modules/vfs_ceph_snapshots.c +++ b/source3/modules/vfs_ceph_snapshots.c @@ -500,9 +500,10 @@ static bool ceph_snap_gmt_strip_snapshot(struct vfs_handle_struct *handle, memcpy(_stripped_buf + len_before_gmt, q, rest_len); } _stripped_buf[dst_len] = '\0'; + DBG_DEBUG("GMT token in %s stripped to %s\n", + name, _stripped_buf); } *_timestamp = timestamp; - DBG_DEBUG("GMT token in %s stripped to %s\n", name, _stripped_buf); return 0; no_snapshot: *_timestamp = 0; -- 2.47.3