Pārlūkot izejas kodu

we crash if the first argument to realpath() is non-null as well so lets mark both arguments as being non-NULL

Mike Frysinger 18 gadi atpakaļ
vecāks
revīzija
7f2cde1002
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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((2));
+		       char *__restrict __resolved) __THROW __wur __nonnull((1,2));
 #endif