[Github-comments] [geany/geany] Remove redundant code (PR #2962)

Andy Alt notifications at xxxxx
Wed Nov 24 20:35:41 UTC 2021


@andy5995 commented on this pull request.



> @@ -1057,7 +1057,7 @@ gboolean build_parse_make_dir(const gchar *string, gchar **prefix)
 	if (string == NULL)
 		return FALSE;
 
-	if ((pos = strstr(string, "Entering directory")) != NULL)
+	if (strstr(string, "Entering directory") != NULL)

And is there any reason not to use strchr instead of strstr?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2962#discussion_r756405401
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211124/7b724859/attachment.htm>


More information about the Github-comments mailing list