diff options
Diffstat (limited to 'binutils/windres.c')
-rw-r--r-- | binutils/windres.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/binutils/windres.c b/binutils/windres.c index ac643ad59a..a4b466c5a5 100644 --- a/binutils/windres.c +++ b/binutils/windres.c @@ -765,6 +765,12 @@ windres_add_include_dir (const char *p) { struct include_dir *n, **pp; + /* Computing paths is often complicated and error prone. + The easiest way to check for mistakes is at the time + we add them to include_dirs. */ + assert (p != NULL); + assert (*p != '\0'); + n = xmalloc (sizeof *n); n->next = NULL; n->dir = (char * ) p; |