From d013bff2636b10452af8412483be9f844957eece Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Mon, 2 Aug 2010 12:00:20 +0000 Subject: [PATCH] Remove incorrect nonnull attribute MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit iso8601_leap_table_load() had an incorrect ‘nonnull’ attribute, which could lead to crashes as the compiled code could omit the test for null which then substitutes the system default. Fix it by removing the attribute. --- src/libiso8601/400_leap.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/libiso8601/400_leap.h b/src/libiso8601/400_leap.h index 2797464..f9bb4ca 100644 --- a/src/libiso8601/400_leap.h +++ b/src/libiso8601/400_leap.h @@ -124,11 +124,7 @@ be set appropriately. If \a errno is \c EINVAL, then the file does not contain a valid leap second table. */ -int iso8601_leap_table_load(const char* fname) -#ifndef DOXYGEN - __attribute__((nonnull)) -#endif -; +int iso8601_leap_table_load(const char* fname);