]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
printing: A little bit of README.Coding in nt_printing.c
authorVolker Lendecke <vl@samba.org>
Sat, 3 Jan 2026 11:32:14 +0000 (12:32 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 20 Jan 2026 11:53:34 +0000 (11:53 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/printing/nt_printing.c

index 56fee826bd4719f5644f034ef188fb68828470f0..3f07950e4bb802ebfa4b224e31fdbe888ea728e2 100644 (file)
@@ -1431,7 +1431,8 @@ static WERROR move_driver_file_to_download_area(TALLOC_CTX *mem_ctx,
                goto done;
        }
 
-       if ((version = file_version_is_newer(conn, old_name, new_name)) > 0) {
+       version = file_version_is_newer(conn, old_name, new_name);
+       if (version > 0) {
                struct files_struct *dirfsp = NULL;
 
                status = driver_unix_convert(conn,