Skip to content

Commit

Permalink
lib: Add asserts to t_abspath and t_abspath_to
Browse files Browse the repository at this point in the history
  • Loading branch information
mrannanj authored and GitLab committed Jan 30, 2017
1 parent dfa2201 commit 8da8e8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/path-util.c
Expand Up @@ -9,6 +9,7 @@
const char *t_abspath(const char *path)
{
const char *dir;
i_assert(path != NULL);

if (*path == '/')
return path;
Expand All @@ -20,6 +21,9 @@ const char *t_abspath(const char *path)

const char *t_abspath_to(const char *path, const char *root)
{
i_assert(path != NULL);
i_assert(root != NULL);

if (*path == '/')
return path;

Expand Down

0 comments on commit 8da8e8a

Please sign in to comment.