-#include "sdtxt.h"
-
+#include <stdlib.h>
#include <string.h>
+#include "sdtxt.h"
// the universe is bound in equal parts by arrogance and altruism, any attempt to alter this would be suicide
{
unsigned char **txtp = (unsigned char **)arg;
char *cval = (char*)val;
- int len;
// copy in lengths, then strings
**txtp = _sd2txt_len(key,(char*)val);
*val = 0;
val++;
}
- xht_store(h, key, strlen(key), val, strlen(val));
+ xht_store(h, key, strlen(key), val, val ? strlen(val) : 0);
}
return h;
}