X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fconf-dump.c;h=0d4092400f52b0da6632885594de3a38b47afcd3;hb=3c3f355f29b9a5706c09829f33bf937385aac3be;hp=940c7ca7242c0e94a86515297f400c31a7eb1eed;hpb=e772e1bde20eb3866ecb7c63d2276b3ae4ea95d5;p=libucw.git diff --git a/lib/conf-dump.c b/lib/conf-dump.c index 940c7ca7..0d409240 100644 --- a/lib/conf-dump.c +++ b/lib/conf-dump.c @@ -31,8 +31,8 @@ dump_basic(struct fastbuf *fb, void *ptr, enum cf_type type, union cf_union *u) case CT_DOUBLE: bprintf(fb, "%lg ", *(double*)ptr); break; case CT_IP: bprintf(fb, "%08x ", *(uns*)ptr); break; case CT_STRING: - if (*(byte**)ptr) - bprintf(fb, "'%s' ", *(byte**)ptr); + if (*(char**)ptr) + bprintf(fb, "'%s' ", *(char**)ptr); else bprintf(fb, "NULL "); break;