Module Name:    src
Committed By:   joerg
Date:           Fri Jul 22 23:12:30 UTC 2011

Modified Files:
        src/lib/libc/stdio: getdelim.c

Log Message:
Set error indicator on invalid arguments. From Carsten Hey.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/stdio/getdelim.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/stdio/getdelim.c
diff -u src/lib/libc/stdio/getdelim.c:1.12 src/lib/libc/stdio/getdelim.c:1.13
--- src/lib/libc/stdio/getdelim.c:1.12	Mon Dec  7 21:31:43 2009
+++ src/lib/libc/stdio/getdelim.c	Fri Jul 22 23:12:30 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: getdelim.c,v 1.12 2009/12/07 21:31:43 roy Exp $ */
+/* $NetBSD: getdelim.c,v 1.13 2011/07/22 23:12:30 joerg Exp $ */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: getdelim.c,v 1.12 2009/12/07 21:31:43 roy Exp $");
+__RCSID("$NetBSD: getdelim.c,v 1.13 2011/07/22 23:12:30 joerg Exp $");
 
 #include "namespace.h"
 
@@ -65,7 +65,7 @@
 
 	if (buf == NULL || buflen == NULL) {
 		errno = EINVAL;
-		return -1;
+		goto error;
 	}
 
 	/* If buf is NULL, we have to assume a size of zero */

Reply via email to