+++ src/lib/fuse-ext2/e2fsprogs-1.41.12.newgit/ext2fs/tdb.c
@@ -75,12 +75,11 @@
 static char *rep_strdup(const char *s)
 {
 	char *ret;
-	int length;
+	size_t length;
 	if (!s)
 		return NULL;
 
-	if (!length)
-		length = strlen(s);
+	length = strlen(s);
 
 	ret = malloc(length + 1);
 	if (ret) {
