GNU bug report logs - #43979
strerror return value

Previous Next

Package: parted;

Reported by: Philipp Klaus Krause <pkk <at> spth.de>

Date: Tue, 13 Oct 2020 17:53:02 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Philipp Klaus Krause <pkk <at> spth.de>
To: bug-parted <at> gnu.org
Subject: strerror return value
Date: Tue, 13 Oct 2020 19:05:30 +0200
This is just a very minor issue.

libparted contains some calls to strerror where the result is assigned
to a char *. However, according to the strerror specification, the
string returned by strerror should never be changed, so it would be
better to use const char * instead.

This affects one line each in

libparted/arch/beos.c
libparted/arch/linux.c

Philipp




This bug report was last modified 4 years and 311 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.