diff options
author | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-03 10:35:35 +0000 |
---|---|---|
committer | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-03 10:35:35 +0000 |
commit | 526d67708cbebe30d6b2bcb527525f555d1dcbd1 (patch) | |
tree | 6a459692c1ee88cfc58b476f3d53e02d51d5444e /libffi/src | |
parent | 9d924a14cb3657941ca4f1406f1b710fec343aec (diff) | |
download | gcc-526d67708cbebe30d6b2bcb527525f555d1dcbd1.tar.gz |
* src/closures.c (open_temp_exec_file_mnt): Check if getmntent_r
returns NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163809 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/src')
-rw-r--r-- | libffi/src/closures.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libffi/src/closures.c b/libffi/src/closures.c index 8f295dddc3c..d7b338b5f5e 100644 --- a/libffi/src/closures.c +++ b/libffi/src/closures.c @@ -294,7 +294,7 @@ open_temp_exec_file_mnt (const char *mounts) struct mntent mnt; char buf[MAXPATHLEN * 3]; - if (getmntent_r (last_mntent, &mnt, buf, sizeof (buf))) + if (getmntent_r (last_mntent, &mnt, buf, sizeof (buf)) == NULL) return -1; if (hasmntopt (&mnt, "ro") |