summaryrefslogtreecommitdiff
path: root/utils/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/utils.c')
-rw-r--r--utils/utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/utils.c b/utils/utils.c
index 1509a6b09..0ddec8194 100644
--- a/utils/utils.c
+++ b/utils/utils.c
@@ -43,12 +43,14 @@
#include "utils/string.h"
#include "utils/utils.h"
-/* exported interface documented in utils/utils.h */
+/* exported interface documented in utils/string.h */
char *squash_whitespace(const char *s)
{
char *c;
int i = 0, j = 0;
+ assert(s != NULL);
+
c = malloc(strlen(s) + 1);
if (c != NULL) {
do {
@@ -208,7 +210,7 @@ nserror snstrjoin(char **str, size_t *size, char sep, size_t nelm, ...)
*/
#define BYTESIZE_BUFFER_SIZE 20
-/* exported interface documented in utils/utils.h */
+/* exported interface documented in utils/string.h */
char *human_friendly_bytesize(unsigned long bsize) {
static char buffer1[BYTESIZE_BUFFER_SIZE];
static char buffer2[BYTESIZE_BUFFER_SIZE];