gas/
[deliverable/binutils-gdb.git] / binutils / windres.c
index ac643ad59a01eeed8633951c3a7ee0ae6fbf0e9f..a4b466c5a5c9026b59439cbdcb7e9f7091dd702a 100644 (file)
@@ -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;
This page took 0.053558 seconds and 4 git commands to generate.