diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/canonicalize.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/canonicalize.c b/lib/canonicalize.c index 66622817b..e82ae75ad 100644 --- a/lib/canonicalize.c +++ b/lib/canonicalize.c @@ -147,6 +147,11 @@ canonicalize_file_name (const char *name) resolved_size = 2 * resolved_size + 1; resolved = xmalloc (resolved_size); resolved_len = resolvepath (name, resolved, resolved_size); + if (resolved_len < 0) + { + free (resolved); + return NULL; + } if (resolved_len < resolved_size) break; free (resolved); |