diff --git a/src/importer.c b/src/importer.c index 574ea54a..0d317dfb 100644 --- a/src/importer.c +++ b/src/importer.c @@ -121,12 +121,11 @@ const gchar* importer_generate_image (const gchar* filepath, const gchar* captio gchar scale_str[16] = { 0 }; gchar* loc = NULL; - /* clear previous data */ + // clear previous data result[0] = 0; - // Filepath notation corrections for Windows systems: #ifdef WIN32 - gchar* path = g_strjoinv("/", g_strsplit(filepath, "\\", -1)); + // filepath notation correction for win32 systems: if (utils_subinstr (" ", filepath, FALSE)) { editor_insert_package (g_active_editor, "grffile", "space"); } @@ -134,7 +133,7 @@ const gchar* importer_generate_image (const gchar* filepath, const gchar* captio snprintf (scale_str, 16, "%.2f", scale); - /* some locales use ',' as seperator, replace them as '.' */ + // some locales use ',' as seperator, replace them as '.' if ( (loc = strstr (scale_str, ","))) *loc = '.'; diff --git a/src/motion.c b/src/motion.c index 5e93b584..4dca5c7b 100644 --- a/src/motion.c +++ b/src/motion.c @@ -104,13 +104,12 @@ void motion_resume_compile_thread (GuMotion* m) { void motion_kill_typesetter (GuMotion* m) { if (*m->typesetter_pid) { - gchar* command = NULL; /* Kill children spawned by typesetter command/script, don't know * how to do this programatically yet(glib doesn't not provides any * function for killing a process), so use pkill for now. For * win32 there's currently nothing we can do about it. */ #ifndef WIN32 - command = g_strdup_printf("pkill -15 -P %d", *m->typesetter_pid); + gchar* command = g_strdup_printf("pkill -15 -P %d", *m->typesetter_pid); system(command); g_free(command);