about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJohn Hernandez <129467592+H3rnand3zzz@users.noreply.github.com>2023-04-19 10:39:21 +0200
committerJohn Hernandez <129467592+H3rnand3zzz@users.noreply.github.com>2023-05-11 09:44:55 +0200
commit9a68aab01149c9781b899d482eb2c34f2cdf505c (patch)
tree0c31d9c23e1d46282fa3118f825b64a5995e1258 /src/xmpp
parentfaccf24c759d7bddb4d3062c7f044e0c7640ffe7 (diff)
downloadprofani-tty-9a68aab01149c9781b899d482eb2c34f2cdf505c.tar.gz
`/url save` and `/url open` refactoring
Additional changes: jid.c minor refactoring
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/jid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xmpp/jid.c b/src/xmpp/jid.c
index af0a606b..e9aa595e 100644
--- a/src/xmpp/jid.c
+++ b/src/xmpp/jid.c
@@ -219,10 +219,9 @@ jid_fulljid_or_barejid(Jid* jid)
 char*
 jid_random_resource(void)
 {
-    char* rand = get_random_string(4);
+    auto_char char* rand = get_random_string(4);
 
     gchar* result = g_strdup_printf("profanity.%s", rand);
-    free(rand);
 
     return result;
 }