mirror of
https://github.com/dvorka/hstr.git
synced 2025-02-23 22:36:34 +08:00
Fixed #22 by non NULL keys.
This commit is contained in:
parent
692bf121b8
commit
f94df24dd1
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue