X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fadd_image.c;h=7a8609fb7084c21656cb5ac2e54a76f356cae3e3;hp=32150a6316a7711b54ce34565f0400dc4ad7c0ff;hb=61edb3642435e6c494d7c7f3038334dd196f58fd;hpb=f389abff995f590fd762777e302f99a413521765 diff --git a/src/add_image.c b/src/add_image.c index 32150a63..7a8609fb 100644 --- a/src/add_image.c +++ b/src/add_image.c @@ -1234,7 +1234,8 @@ static void canonicalize_targets(struct wimlib_capture_source *sources, * backslashes to avoid confusing other parts of the library * code. */ zap_backslashes(sources->fs_source_path); - zap_backslashes(sources->wim_target_path); + if (sources->wim_target_path) + zap_backslashes(sources->wim_target_path); #endif sources->wim_target_path = (char*)canonicalize_target_path(sources->wim_target_path);