Skip to content

Commit c88a54b

Browse files
committed
If ht is NULL return Nothing
1 parent 08fbde6 commit c88a54b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

0x1A-hash_tables/5-hash_table_print.c

-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ void hash_table_print(const hash_table_t *ht)
1212
unsigned long int index, sep_index;
1313

1414
if (ht == NULL)
15-
{
16-
printf("{}\n");
1715
return;
18-
}
1916

2017
printf("{");
2118
sep_index = 0;

0 commit comments

Comments
 (0)