Revision: 1890 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1890&view=re... Author: frlan Date: 2011-01-29 16:40:40 +0000 (Sat, 29 Jan 2011)
Log Message: ----------- Tableconvert: Fix warnings introduced with last commit
Modified Paths: -------------- trunk/geany-plugins/tableconvert/src/tableconvert.c
Modified: trunk/geany-plugins/tableconvert/src/tableconvert.c =================================================================== --- trunk/geany-plugins/tableconvert/src/tableconvert.c 2011-01-29 16:40:17 UTC (rev 1889) +++ trunk/geany-plugins/tableconvert/src/tableconvert.c 2011-01-29 16:40:40 UTC (rev 1890) @@ -77,7 +77,6 @@
/* Iteration onto rows and building up lines of table for * replacement */ - for (i = 0; rows[i] != NULL ; i++) { gchar **columns = NULL; @@ -110,24 +109,23 @@ } g_free(columns); } - } - }
- /* Adding the footer of table */ - /* Closing </tbody> if requested */ - if (header == TRUE) - { - g_string_append(replacement_str, "</tbody>\n"); - } + /* Adding the footer of table */ + /* Closing </tbody> if requested */ + if (header == TRUE) + { + g_string_append(replacement_str, "</tbody>\n"); + }
- g_string_append(replacement_str, "</table>\n"); + g_string_append(replacement_str, "</table>\n");
- /* Replacing selection with new table */ - replacement = g_string_free(replacement_str, FALSE); - sci_replace_sel(doc->editor->sci, replacement); - - g_free(rows); - g_free(replacement); + /* Replacing selection with new table */ + replacement = g_string_free(replacement_str, FALSE); + sci_replace_sel(doc->editor->sci, replacement); + g_free(rows); + g_free(replacement); + } + } } else {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.