diff options
Diffstat (limited to 'binutils/bucomm.c')
-rw-r--r-- | binutils/bucomm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/binutils/bucomm.c b/binutils/bucomm.c index e682717..fd6f356 100644 --- a/binutils/bucomm.c +++ b/binutils/bucomm.c @@ -587,6 +587,9 @@ get_file_size (const char * file_name) { struct stat statbuf; + if (file_name == NULL) + return (off_t) -1; + if (stat (file_name, &statbuf) < 0) { if (errno == ENOENT) |