-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: hackvr action: commit revision: path_from: revision_from: b197cf7a4164471a5af97fffd742c3d825111cca: path_to: revision_to:
commit b197cf7a4164471a5af97fffd742c3d825111cca Author: epoch <epoch@thebackupbox.net> Date: Wed Apr 22 06:17:19 2020 -0500 attempt at fixing bug in renamegroup based on hashtable crap diff --git a/src/hackvr.c b/src/hackvr.c
--- a/src/hackvr.c +++ b/src/hackvr.c @@ -304,8 +304,10 @@ int hackvr_handler(char *line) { } gr=get_group_relative(a[2]);//this shouldn't be used here. why? if(gr) { + ht_delete(&global.ht_group,gr->id); free(gr->id); - gr->id=strdup(a[3]); + gr->id=strdup(a[3]);//we also need to remove and reinsert into the hash table. + ht_setkey(&global.ht_group,gr->id,gr); } } ret=1;
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 14:36:05 2024