diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-10-09 09:54:48 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-10-09 09:54:48 +0000 |
commit | e0c689dc0362faeb7bcd5b5b78d3b5988ecf8d34 (patch) | |
tree | 596b814077428ea2877fc5a8379c66c31904960b /epan/filesystem.c | |
parent | 03194fa27089f5d9b2d9e64b18cce9e3ee73c750 (diff) | |
download | wireshark-e0c689dc0362faeb7bcd5b5b78d3b5988ecf8d34.tar.gz |
Check for NULL pointer in file_exists().
svn path=/trunk/; revision=39318
Diffstat (limited to 'epan/filesystem.c')
-rw-r--r-- | epan/filesystem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/filesystem.c b/epan/filesystem.c index 0d0128bd1e..d3a5beeda5 100644 --- a/epan/filesystem.c +++ b/epan/filesystem.c @@ -1708,6 +1708,10 @@ file_exists(const char *fname) { ws_statb64 file_stat; + if (!fname) { + return FALSE; + } + #ifdef _WIN32 /* * This is a bit tricky on win32. The st_ino field is documented as: |