Skip to content

Commit

Permalink
install/cookie_to_output: Still return something, even if no prefix (…
Browse files Browse the repository at this point in the history
…e.g. when just building)
  • Loading branch information
obiwac committed Nov 10, 2024
1 parent 09f957e commit 4d0b91b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/install.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ int install_all(char const* _prefix) {
}

char* cookie_to_output(char* cookie, flamingo_val_t** key_val_ref) {
if (install_map == NULL || prefix == NULL) {
if (install_map == NULL) {
return 0;
}

Expand Down Expand Up @@ -232,6 +232,10 @@ char* cookie_to_output(char* cookie, flamingo_val_t** key_val_ref) {
}

int install_cookie(char* cookie) {
if (prefix == NULL) {
return 0;
}

flamingo_val_t* key = NULL;
char* const CLEANUP_STR out = cookie_to_output(cookie, &key);

Expand Down

0 comments on commit 4d0b91b

Please sign in to comment.