bug-cvs
[Top][All Lists]
Advanced

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

const qualifier violation in regex.c:re_comp()


From: Martin Neitzel
Subject: const qualifier violation in regex.c:re_comp()
Date: Fri, 1 Oct 2004 19:51:00 +0200 (CEST)

>Submitter-Id:   net
>Originator:     Martin Neitzel
>Organization:  Gaertner Datensysteme
>Confidential:  no
>Synopsis:      const qualifier violation in regex.c:re_comp()
>Severity:      non-critical
>Priority:      low
>Category:      cvs
>Class:         sw-bug
>Release:       1.12.9.1
>Environment:
        IRIX sco 5.3 11091810 IP12 mips
        (Probably any ANSI C build environment.)

>Description:
        lib/regex.c has a botched const char* (un)qualification.

>How-To-Repeat:
        Compile with all warnings taken seriously.

>Fix:

Index: lib/regex.c
===================================================================
RCS file: /cvs/ccvs/lib/regex.c,v
retrieving revision 1.14
diff -u -r1.14 regex.c
--- lib/regex.c 8 Apr 2004 01:35:59 -0000       1.14
+++ lib/regex.c 1 Oct 2004 14:06:46 -0000
@@ -7912,7 +7912,7 @@
   if (!s)
     {
       if (!re_comp_buf.buffer)
-       return gettext ("No previous regular expression");
+       return gettext_noop ("No previous regular expression");
       return 0;
     }
 




reply via email to

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