]> git.ipfire.org Git - thirdparty/git.git/blobdiff - submodule.c
config API: have *_multi() return an "int" and take a "dest"
[thirdparty/git.git] / submodule.c
index 8ac2fca855d6c3615be2e5b8a7f16a4746441e1a..e43c4230ba39524503f221577aa9dfb06a235003 100644 (file)
@@ -274,8 +274,7 @@ int is_tree_submodule_active(struct repository *repo,
        free(key);
 
        /* submodule.active is set */
-       sl = repo_config_get_value_multi(repo, "submodule.active");
-       if (sl) {
+       if (!repo_config_get_value_multi(repo, "submodule.active", &sl)) {
                struct pathspec ps;
                struct strvec args = STRVEC_INIT;
                const struct string_list_item *item;