Browse Source

revert previous change; reading POSIX spec some more says we need to set errno to EINVAL if filename is NULL

Mike Frysinger 18 years ago
parent
commit
b56c113af8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/stdlib.h

+ 1 - 1
include/stdlib.h

@@ -637,7 +637,7 @@ extern char *canonicalize_file_name (__const char *__name)
    name in RESOLVED.  */
 /* we choose to handle __resolved==NULL as crash :) */
 extern char *realpath (__const char *__restrict __name,
-		       char *__restrict __resolved) __THROW __wur __nonnull((1,2));
+		       char *__restrict __resolved) __THROW __wur __nonnull((2));
 #endif