irced

ed, but like irc
git clone git://bvnf.space/irced.git
Log | Files | Refs | README

commit 9c5f5fce33d0c1e8efda0a43eb81c14e80eaa20e
parent 1418b8d1d28214795b9876923bd564f81ee3d301
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Thu, 18 Aug 2022 19:04:13 -0500

remove unnecessary dynamic allocation

Diffstat:
Mirced.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/irced.c b/irced.c @@ -246,7 +246,7 @@ main(int argc, char **argv) { while ((c = getopt(argc, argv, "p:")) != -1) { switch(c) { case 'p': - port = strdup(optarg); + port = optarg; break; case '?': usage(argv[0]); @@ -279,6 +279,5 @@ main(int argc, char **argv) { ret = 1; close(sfd); - free(port); return ret; }