*/
#include <stdlib.h>
#include <string.h>
+#include <stdio.h>
#include "jsw_hlib.h"
jsw_node_t *new_item;
/* Disallow duplicate keys */
- if ( jsw_hfind ( htab, key ) != NULL )
+ if ( jsw_hfind ( htab, key ) != NULL ) {
return 0;
+ }
/* Attempt to create a new item */
dupkey = htab->keydup ( key );
new_item = new_node ( dupkey, dupitem, NULL );
- if ( new_item == NULL )
+ if ( new_item == NULL ) {
return 0;
+ }
/* Create a chain if the bucket is empty */
if ( htab->table[h] == NULL ) {