Merge branch 'master' into fixthreads

This commit is contained in:
sshambar
2017-01-21 10:27:26 -05:00
committed by GitHub
27 changed files with 2642 additions and 1299 deletions

View File

@@ -262,6 +262,15 @@ safe_hextou64(const char *str, uint64_t *val)
return 0;
}
char *
safe_strdup(const char *str)
{
if (str == NULL)
return NULL;
return strdup(str);
}
/* Key/value functions */
struct keyval *