Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-09-09 01:07:43 +0400
committerJeff Johnston <jjohnstn@redhat.com>2005-09-09 01:07:43 +0400
commit7b786e4861b3ba6594d5518770ddc498ae9b8a87 (patch)
tree8e1f1f3a64bfb5a6c4f84b932eb3d7478e4dea8d /newlib/libc
parent32b09d754fe438551432e74413d7f13689527b7f (diff)
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.c4
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;