The compiler already creates an empty string as applicable, drop the
extra variable.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/224
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
#include <sys/stat.h>
#include <unistd.h>
-static const char _idx_empty_str[] = "";
-
struct index_mm {
const struct kmod_ctx *ctx;
void *mm;
size_t len;
node->prefix = read_chars_mm(&p, &len);
} else {
- node->prefix = _idx_empty_str;
+ node->prefix = "";
}
if (offset & INDEX_NODE_CHILDS) {