]> git.ipfire.org Git - thirdparty/git.git/blobdiff - list-objects-filter.c
git-prompt: change == to = for zsh's sake
[thirdparty/git.git] / list-objects-filter.c
index 1e8d4e763da07377263086d252d1228004971383..0a3ef3cab3ac31abb679a18f048798e7e4ac54ea 100644 (file)
@@ -663,6 +663,9 @@ struct filter *list_objects_filter__init(
 
        assert((sizeof(s_filters) / sizeof(s_filters[0])) == LOFC__COUNT);
 
+       if (!filter_options)
+               return NULL;
+
        if (filter_options->choice >= LOFC__COUNT)
                BUG("invalid list-objects filter choice: %d",
                    filter_options->choice);