]> wimlib.net Git - wimlib/blobdiff - src/capture_common.c
check_add_command(): Use WIMLIB_ERR_UNSUPPORTED when appropriate
[wimlib] / src / capture_common.c
index 431a468116decb92d4aaef4b7167f1bc9a3c45b5..a18b49ca9e226740080920401152d51fb676bdea 100644 (file)
@@ -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);