X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fcapture_common.c;h=a18b49ca9e226740080920401152d51fb676bdea;hp=431a468116decb92d4aaef4b7167f1bc9a3c45b5;hb=22c0e369cb60b73a9ec209c878173001bfb43db8;hpb=5e2f9715d5c0e1f1c3fc30a53d14df69a8bdae4a diff --git a/src/capture_common.c b/src/capture_common.c index 431a4681..a18b49ca 100644 --- a/src/capture_common.c +++ b/src/capture_common.c @@ -1,3 +1,7 @@ +/* + * capture_common.c - Mostly code to handle excluding paths from capture. + */ + /* * Copyright (C) 2013 Eric Biggers * @@ -178,6 +182,8 @@ bool exclude_path(const tchar *path, size_t path_len, const struct wimlib_capture_config *config, bool exclude_prefix) { + if (!config) + return false; const tchar *basename = path_basename_with_len(path, path_len); if (exclude_prefix) { wimlib_assert(path_len >= config->_prefix_num_tchars);