fix: remove stale null-check causing false positive in user validation

This commit is contained in:
retoor 2025-05-14 00:43:33 +00:00
parent d73618a004
commit e2e7ca52d1
3 changed files with 2 additions and 2 deletions

2
main.c
View File

@ -265,4 +265,4 @@ int main(int argc, char *argv[]) {
repl();
return 0;
}
}

2
r.h
View File

@ -73,7 +73,7 @@ void set_prompt_model(const char *model) {
const char *get_prompt_model() {
if (_model == NULL && getenv("R_MODEL") != NULL) {
_model = getenv("R_MODEL");
_model = strdup(getenv("R_MODEL"));
}
if (_model) {
return _model;

BIN
rpylib.so

Binary file not shown.