mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(AD_mark_helper): Eliminate unnecessary comparison.
This commit is contained in:
1 parent
2f317665ed
commit
19387038f5
1 file changed
+6
-4
+6
-4
@@ -418,10 +418,12 @@ static void
|
||||
AD_mark_helper (Hash_table **ht, char const *filename)
|
||||
{
|
||||
if (*ht == NULL)
|
||||
*ht = hash_initialize (HT_UNREMOVABLE_INITIAL_CAPACITY, NULL, hash_pjw,
|
||||
hash_compare_strings, hash_freer);
|
||||
if (*ht == NULL)
|
||||
xalloc_die ();
|
||||
{
|
||||
*ht = hash_initialize (HT_UNREMOVABLE_INITIAL_CAPACITY, NULL, hash_pjw,
|
||||
hash_compare_strings, hash_freer);
|
||||
if (*ht == NULL)
|
||||
xalloc_die ();
|
||||
}
|
||||
if (! hash_insert (*ht, filename))
|
||||
xalloc_die ();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user