-- 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:

git.thebackupbox.net

hackvr

git://git.thebackupbox.net/hackvr

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

index 0d41f5a84ab1cba5670c0c4b979a12c76d09e1ca..

index ..7779a3c059460548f868fc868daff7350171264a 100644

--- 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