diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2005-09-08 21:07:43 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2005-09-08 21:07:43 +0000 |
commit | 7b786e4861b3ba6594d5518770ddc498ae9b8a87 (patch) | |
tree | 8e1f1f3a64bfb5a6c4f84b932eb3d7478e4dea8d /newlib/libc | |
parent | 32b09d754fe438551432e74413d7f13689527b7f (diff) | |
download | cygnal-7b786e4861b3ba6594d5518770ddc498ae9b8a87.tar.gz cygnal-7b786e4861b3ba6594d5518770ddc498ae9b8a87.tar.bz2 cygnal-7b786e4861b3ba6594d5518770ddc498ae9b8a87.zip |
2005-09-08 Eric Blake <ebb9@byu.net>
* libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
before is NULL.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/argz/argz_insert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/argz/argz_insert.c b/newlib/libc/argz/argz_insert.c index 043a10193..8a9fb19b2 100644 --- a/newlib/libc/argz/argz_insert.c +++ b/newlib/libc/argz/argz_insert.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved. +/* Copyright (C) 2002, 2005 by Red Hat, Incorporated. All rights reserved. * * Permission to use, copy, modify, and distribute this software * is freely granted, provided that this notice is preserved. @@ -20,7 +20,7 @@ _DEFUN (argz_insert, (argz, argz_len, before, entry), int len = 0; if (before == NULL) - argz_add(argz, argz_len, entry); + return argz_add(argz, argz_len, entry); if (before < *argz || before >= *argz + *argz_len) return EINVAL; |