Fixed #22 by non NULL keys.

This commit is contained in:
Martin Dvorak 2013-12-23 21:34:00 +01:00
parent 692bf121b8
commit f94df24dd1
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ int hashset_put(HashSet * hs, const char *key, void *value) {
}
int hashset_add(HashSet * hs, const char *key) {
return hashset_put(hs, key, NULL);
return hashset_put(hs, key, "nil");
}
int hashset_size(const HashSet * hs) {

View file

@ -23,7 +23,7 @@ typedef struct {
static HistoryItems *prioritizedHistory;
static bool dirty;
static const char *commandBlacklist[] = {"ls", "pwd", "cd", "hh"};
static const char *commandBlacklist[] = {"ls", "pwd", "cd", "hh", "mc"};
#ifdef DEBUG_RADIX
#define DEBUG_RADIXSORT() radixsort_stat(&rs); exit(0)