Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b4fcaa1 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[PATCH] misuse of strstr

parent fd2c903b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ static struct gdlm_ls *init_gdlm(lm_callback_t cb, struct gfs2_sbd *sdp,
	strncpy(buf, table_name, 256);
	buf[255] = '\0';

	p = strstr(buf, ":");
	p = strchr(buf, ':');
	if (!p) {
		log_info("invalid table_name \"%s\"", table_name);
		kfree(ls);