Pacify gcc 14 -Wanalyzer-null-argument

* src/tar.c (optloc_eq): Add another ‘assume’.
This commit is contained in:
Paul Eggert
2024-07-27 00:26:15 -07:00
parent fd33f25989
commit 3fa1fd0751

View File

@@ -1053,6 +1053,7 @@ optloc_eq (struct option_locus *a, struct option_locus *b)
return 0;
if (a->source == OPTS_COMMAND_LINE)
return 1;
assume (a->name);
return strcmp (a->name, b->name) == 0;
}