diff options
author | Joseph Myers <joseph@codesourcery.com> | 2014-11-25 21:40:51 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2014-11-25 21:40:51 +0000 |
commit | bde2667a22c355467a4f07246c6d07a9dcc89366 (patch) | |
tree | 4667e099c4f3874b46f9345412088da63d4feb22 /posix/bug-regex31.c | |
parent | 5fbb569186ef678d7ca3b7b865dd36f851eb433c (diff) | |
download | glibc-bde2667a22c355467a4f07246c6d07a9dcc89366.zip glibc-bde2667a22c355467a4f07246c6d07a9dcc89366.tar.gz glibc-bde2667a22c355467a4f07246c6d07a9dcc89366.tar.bz2 |
Fix warning in posix/bug-regex31.c.
This patch fixes a "set but not used" warning in posix/bug-regex31.c.
A variable res stored an indication of whether the test behaved as
expected, but was then ignored and the test returned 0 unconditionally
(as an mtrace test, the auxiliary test for leaks could still have
failed if that bug was present). This patch makes the test return
res.
Tested for x86_64.
* posix/bug-regex31.c (main): Return RES not 0.
Diffstat (limited to 'posix/bug-regex31.c')
-rw-r--r-- | posix/bug-regex31.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/bug-regex31.c b/posix/bug-regex31.c index fc48581..fd7e0c5 100644 --- a/posix/bug-regex31.c +++ b/posix/bug-regex31.c @@ -33,5 +33,5 @@ main (void) free (buf); - return 0; + return res; } |