SF.net SVN: geany:[5042] branches/sm/src/main.c
statc at users.sourceforge.net
statc at xxxxx
Thu Jun 17 14:55:33 UTC 2010
Revision: 5042
http://geany.svn.sourceforge.net/geany/?rev=5042&view=rev
Author: statc
Date: 2010-06-17 14:55:33 +0000 (Thu, 17 Jun 2010)
Log Message:
-----------
Use g_strdup() when storing a string command-line value in a global structure.
This will prevent modification and deallocation of original value, needed by SM implementation.
Modified Paths:
--------------
branches/sm/src/main.c
Modified: branches/sm/src/main.c
===================================================================
--- branches/sm/src/main.c 2010-06-17 14:55:15 UTC (rev 5041)
+++ branches/sm/src/main.c 2010-06-17 14:55:33 UTC (rev 5042)
@@ -583,7 +583,7 @@
if (alternate_config)
{
geany_debug("alternate config: %s", alternate_config);
- app->configdir = alternate_config;
+ app->configdir = g_strdup(alternate_config);
}
else
{
@@ -613,12 +613,12 @@
socket_info.ignore_socket = cl_options.new_instance;
if (cl_options.socket_filename)
{
- socket_info.file_name = cl_options.socket_filename;
+ socket_info.file_name = g_strdup(cl_options.socket_filename);
}
#endif
#ifdef HAVE_VTE
- vte_info.lib_vte = lib_vte;
+ vte_info.lib_vte = g_strdup(lib_vte);
#endif
cl_options.ignore_global_tags = ignore_global_tags;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list