Add an assert of this property to help static analyzers (or humans)
reading this code.
* src/elflint.c (process_file): Add assert.
Signed-off-by: Mark Wielaard <mark@klomp.org>
char new_suffix[(suffix == NULL ? 0 : strlen (suffix)) + 2];
char *cp = new_prefix;
+ /* Either both prefix and suffix are NULL or both are non-NULL. */
+ assert ((prefix == NULL && suffix == NULL)
+ || (prefix != NULL && suffix != NULL));
+
/* Create the full name of the file. */
if (prefix != NULL)
{