This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=14d2ed4cf9d31851b119118d0bf6466c76e31d62

commit 14d2ed4cf9d31851b119118d0bf6466c76e31d62
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Jan 23 12:28:49 2024 +0100

    libdpkg: Rename r variable for path_quote_filename() return to ret
    
    This contains the returned string, so «ret» is somewhat more descriptive
    than just «r».
---
 lib/dpkg/path.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/dpkg/path.c b/lib/dpkg/path.c
index 1a4dba182..d7b20d633 100644
--- a/lib/dpkg/path.c
+++ b/lib/dpkg/path.c
@@ -131,11 +131,11 @@ path_make_temp_template(const char *suffix)
 char *
 path_quote_filename(char *dst, const char *src, size_t n)
 {
-       char *r = dst;
+       char *ret = dst;
        ssize_t size = (ssize_t)n;
 
        if (size == 0)
-               return r;
+               return ret;
 
        while (*src) {
                if (*src == '\\') {
@@ -166,5 +166,5 @@ path_quote_filename(char *dst, const char *src, size_t n)
 
        *dst = '\0';
 
-       return r;
+       return ret;
 }

-- 
Dpkg.Org's dpkg

Reply via email to