diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-03-10 06:46:51 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-03-10 06:46:51 +0000 |
commit | 3f2fb22342acc2f14e9662fd157955fd6a9814e5 (patch) | |
tree | 5194d4ba22d545d09063bafdb0170184a89cf033 /stdlib | |
parent | f4c024d1f956a7e853eba10ce33ab6851b5d43d1 (diff) | |
download | glibc-3f2fb22342acc2f14e9662fd157955fd6a9814e5.tar.gz glibc-3f2fb22342acc2f14e9662fd157955fd6a9814e5.tar.xz glibc-3f2fb22342acc2f14e9662fd157955fd6a9814e5.zip |
[BZ #16]
Update. 2004-03-09 Ulrich Drepper <drepper@redhat.com> * stdlib/qsort.c (_quicksort): Initialize first stack element [BZ #16]. 2004-03-05 Jakub Jelinek <jakub@redhat.com> * posix/regexec.c (regexec): Return with error on unknown eflags. Replace weak_alias with versioned_symbol. (__compat_regexec): New. * posix/Versions (libc): Add regexec@GLIBC_2.3.4.
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/qsort.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/stdlib/qsort.c b/stdlib/qsort.c index 1ac268bec9..6a33c52f39 100644 --- a/stdlib/qsort.c +++ b/stdlib/qsort.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1996, 1997, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1991,1992,1996,1997,1999,2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Douglas C. Schmidt (schmidt@ics.uci.edu). @@ -103,7 +103,9 @@ _quicksort (void *const pbase, size_t total_elems, size_t size, char *lo = base_ptr; char *hi = &lo[size * (total_elems - 1)]; stack_node stack[STACK_SIZE]; - stack_node *top = stack + 1; + stack_node *top = stack; + + PUSH (NULL, NULL); while (STACK_NOT_EMPTY) { |