Anonymous avatar Anonymous committed 8c0fd14

Remove some unused variables.
Found with llvm static analyzer.

Comments (0)

Files changed (3)


 		char *p;
 		char *s;
-		char *t;
 		s = LOCAL_COPY(info);
 			*p = '\0';
 		/* check for a ] which would symbolise an [IP] */
-		if((t = strchr(s, ']')))
+		if(strchr(s, ']'))
 			/* set s to after the first space */


 	int lenadd;
 	int lendel;
 	int del;
-	struct Client *target_p;
 	char *n = LOCAL_COPY(nicks);
 	*addbuf = *delbuf = '\0';
-		if((target_p = find_named_person(name)) == NULL)
+		if(find_named_person(name) == NULL)
 			sendto_one_numeric(source_p, ERR_NOSUCHNICK, 
 					   form_str(ERR_NOSUCHNICK), name);


 mo_kline(struct Client *client_p, struct Client *source_p,
 	 int parc, const char **parv)
-	char def[] = "No Reason";
 	char user[USERLEN + 2];
 	char host[HOSTLEN + 2];
 	char buffer[IRCD_BUFSIZE];
-	char *reason = def;
+	char *reason;
 	char *oper_reason;
 	const char *current_date;
 	const char *target_server = NULL;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.