techee commented on this pull request.
> @@ -205,6 +205,26 @@ static gchar *generate_find_string(GeanyProject *prj)
}
+static const gchar *get_base_path(void)
+{
+ static gchar *ret = NULL;
Things start making much more sense once you notice the magic word "static",
don't they ;-). And yes, it probably won't win any competition in code
beautifulness but despite that it makes other code simpler and easier to
maintain.
--
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-plugins/pull/755#discussion_r195514863