xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit 2b86a22a7d179aca26868a98958f2eccd2d67829

Add missing NULL check to matchers_alloc()
Author: xaizek
Author date (UTC): 2026-07-24 17:30
Committer name: xaizek
Committer date (UTC): 2026-07-24 17:42
Parent(s): 9cc98729aab4557b956bd60128860b9703d6631c
Signing key: 99DC5E4DB05F6BE2
Tree: c6e42fea9d6c754651e701355ed7b387b8b99e1f
File Lines added Lines deleted
src/utils/matchers.c 6 0
File src/utils/matchers.c changed (mode: 100644) (index 6aad77a43..587e9eaa3)
... ... matchers_t *
81 81 matchers_alloc(const char expr[], const char list[], int cs_by_def, matchers_alloc(const char expr[], const char list[], int cs_by_def,
82 82 int glob_by_def, const char on_empty_re[], char **error) int glob_by_def, const char on_empty_re[], char **error)
83 83 { {
84 *error = NULL;
85
84 86 int nsubs; int nsubs;
85 87 char **subs = break_into_matchers(list, &nsubs, /*is_list=*/0); char **subs = break_into_matchers(list, &nsubs, /*is_list=*/0);
88 if(subs == NULL)
89 {
90 return NULL;
91 }
86 92
87 93 MatcherExpr expr_kind = (glob_by_def ? ME_DEF_GLOB : ME_DEF_REGEX); MatcherExpr expr_kind = (glob_by_def ? ME_DEF_GLOB : ME_DEF_REGEX);
88 94 matchers_t *matchers = matchers_init(expr, subs, nsubs, cs_by_def, matchers_t *matchers = matchers_init(expr, subs, nsubs, cs_by_def,
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master