[Github-comments] [geany/geany] Avoid re-scanning the string (PR #2962)

elextr notifications at xxxxx
Thu Nov 25 07:12:00 UTC 2021


@elextr commented on this pull request.



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

Yeah, so just rescan from the start of "Enetring Directory" and it doesn't matter if the string changes.

-- 
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_r756620340
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211124/fe5e484e/attachment-0001.htm>


More information about the Github-comments mailing list