Skip to content
Myr

main: read_cache(): skip applications with no ID

Before adoption: this commit came in with the history the project adopted, so no landing records it.

app->id is NULL for all plain binaries, which gets added with --list-executables-in-path. Closes #356

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 4aba8f9 · Browse files · 2 files+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+8 added−0 removed

  • other:+8 added−0 removed

2 files+8 added−0 removed

modified:CHANGELOG.md+3 added
53 unmodified lines
54* PNG images being way too dark.55* Crash when the cache contains strings that are not valid in the56 current locale ([#337][337]).57* Crash when `tabs` (in `fuzzel.ini`) is set to `0` ([#348][348]).58* Crash while loading the cache, when `--list-executables-in-path` is59 used ([#356][356])6061[348]: https://codeberg.org/dnkl/fuzzel/issues/34862[356]: https://codeberg.org/dnkl/fuzzel/issues/356636465### Security66### Contributors
648 unmodified lines
modified:main.c+5 added
140 unmodified lines
141 /* Loop all applications, and search for a matching cache entry */142 for (size_t i = 0; i < apps->count; i++) {143 struct application *app = &apps->v[i];144145 if (app->id == NULL) {146 /* E.g. plain binaries, from --list-executables-in-path */147 continue;148 }149150 tll_foreach(cache_entries, it) {151 const struct cache_entry *e = &it->item;152153 if (strcmp(app->id, e->id) == 0) {
1451 unmodified lines