Remove debug lines

This commit is contained in:
Night Kaly 2024-11-21 17:35:59 +00:00
parent 825eb2b9de
commit d3b2ff6423
Signed by: night0721
SSH key fingerprint: SHA256:B/hgVwUoBpx5vdNsXl9w8XwZljA9766uk6T4ubZp5HM

3
ccc.c
View file

@ -1237,9 +1237,6 @@ void show_history(const Arg *arg)
void open_fav(const Arg *arg) void open_fav(const Arg *arg)
{ {
char envname[9]; char envname[9];
FILE*f=fopen("/home/night/a", "a");
fprintf(f, "%d\n", arg->i);
fclose(f);
snprintf(envname, 9, "CCC_FAV%d", arg->i); snprintf(envname, 9, "CCC_FAV%d", arg->i);
char *fav = getenv(envname); char *fav = getenv(envname);
if (fav && strcmp(fav, "")) { if (fav && strcmp(fav, "")) {