diff options
author | Christopher Faylor <me@cgf.cx> | 2013-01-23 18:06:06 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2013-01-23 18:06:06 +0400 |
commit | 0e8c8b009361a87243874b8e576b9326d8ec9ab2 (patch) | |
tree | 5490ea1bea45d092a843fcdc87bda6400182da74 /winsup/cygwin/miscfuncs.cc | |
parent | df37bdc5b7df09ca4d26f8dbf93f07676f097321 (diff) |
* miscfuncs.cc (__import_address): On second thought, the chance that this
pointer could be NULL is very low so don't bother checking for it.
Diffstat (limited to 'winsup/cygwin/miscfuncs.cc')
-rw-r--r-- | winsup/cygwin/miscfuncs.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/miscfuncs.cc b/winsup/cygwin/miscfuncs.cc index 8e954b39f..4f9c9df9d 100644 --- a/winsup/cygwin/miscfuncs.cc +++ b/winsup/cygwin/miscfuncs.cc @@ -437,7 +437,7 @@ slashify (const char *src, char *dst, bool trailing_slash_p) void * __reg1 __import_address (void *imp) { - if (!imp || *((uint16_t *) imp) != 0x25ff) + if (*((uint16_t *) imp) != 0x25ff) return NULL; myfault efault; if (efault.faulted ()) |