gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 244/411: strerror: use 'const' as the string should never be mod


From: gnunet
Subject: [gnurl] 244/411: strerror: use 'const' as the string should never be modified
Date: Wed, 13 Jan 2021 01:20:59 +0100

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

nikita pushed a commit to branch master
in repository gnurl.

commit 5168e5ad1dbc2a3398a2c3c6c7cba2779a4e4cee
Author: Philipp Klaus Krause <pkk@spth.de>
AuthorDate: Tue Oct 13 18:35:50 2020 +0200

    strerror: use 'const' as the string should never be modified
    
    Closes #6068
---
 lib/strerror.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/strerror.c b/lib/strerror.c
index b5808df2d..9082eac6a 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -781,7 +781,7 @@ const char *Curl_strerror(int err, char *buf, size_t buflen)
   }
 #else
   {
-    char *msg = strerror(err);
+    const char *msg = strerror(err);
     if(msg)
       strncpy(buf, msg, max);
     else

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]