https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70038
kenlon <366899789 at qq dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID |--- --- Comment #2 from kenlon <366899789 at qq dot com> --- call to stat with a null argument is not the matter,it will return -1,that is ok. the matter code is: (prevlinkname ? "TRUE":"NULL"); if (prevlinkname) { .... } it will not judge "prevlinkname".