diff options
Diffstat (limited to 'tools/lib/h5diff_util.c')
-rw-r--r-- | tools/lib/h5diff_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lib/h5diff_util.c b/tools/lib/h5diff_util.c index 4f1e97c..34686c6 100644 --- a/tools/lib/h5diff_util.c +++ b/tools/lib/h5diff_util.c @@ -283,6 +283,9 @@ diff_basename(const char *name) { size_t i; + if (name==NULL) + return; + /* Find the end of the base name */ i = strlen(name); while (i>0 && '/'==name[i-1]) |