[Github-comments] [geany/geany-plugins] Workbench (#598)

LarsGit223 notifications at xxxxx
Sun Aug 20 17:14:46 UTC 2017


LarsGit223 commented on this pull request.



> + * string with g_free().
+ *
+ * @param base     The absolute path.
+ * @param relative The relative path.
+ * @return Combined path or NULL if no memory is available
+ *
+ **/
+gchar *get_combined_path(const gchar *base, const gchar *relative)
+{
+	gchar *basedir, *basedir_end;
+	const gchar *start;
+	gchar *result;
+	guint length;
+	gint goback;
+
+	if (relative[0] != '.')

I re-factored the function. It is now handling all relative pathes and uses ```g_strconcat```.

-- 
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/598#discussion_r134121212
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170820/9415e0f0/attachment.html>


More information about the Github-comments mailing list