diff options
Diffstat (limited to 'source/common/adfile.c')
| -rw-r--r-- | source/common/adfile.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/common/adfile.c b/source/common/adfile.c index 69f68ca04c96..fc7c6b233d87 100644 --- a/source/common/adfile.c +++ b/source/common/adfile.c @@ -295,7 +295,10 @@ FlSplitInputPathname ( char *Filename; - *OutDirectoryPath = NULL; + if (OutDirectoryPath) + { + *OutDirectoryPath = NULL; + } if (!InputPath) { @@ -340,7 +343,10 @@ FlSplitInputPathname ( return (AE_NO_MEMORY); } - *OutDirectoryPath = DirectoryPath; + if (OutDirectoryPath) + { + *OutDirectoryPath = DirectoryPath; + } if (OutFilename) { |
