Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
/* we need to fake up a fsp here,
* because its not send in this call
*/
- files_struct tmpfsp;
- SMB_NTQUOTA_STRUCT quotas;
-
- ZERO_STRUCT(tmpfsp);
- ZERO_STRUCT(quotas);
-
- tmpfsp.conn = conn;
- tmpfsp.fnum = FNUM_FIELD_INVALID;
+ files_struct tmpfsp = {
+ .conn = conn,
+ .fnum = FNUM_FIELD_INVALID,
+ };
+ SMB_NTQUOTA_STRUCT quotas = {};
/* access check */
if (get_current_uid(conn) != 0) {