Revision: 2164 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2164&view=re... Author: frlan Date: 2011-08-24 06:09:27 +0000 (Wed, 24 Aug 2011)
Log Message: ----------- Tableconvert: Make sanity check on entry point of convert fuctions
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-08-24 05:51:17 UTC (rev 2163) +++ trunk/geany-plugins/tableconvert/src/tableconvert.c 2011-08-24 06:09:27 UTC (rev 2164) @@ -45,12 +45,15 @@
static GtkWidget *main_menu_item = NULL;
+ static GString* convert_to_table_html(gchar **rows, gboolean header) { guint i; guint j; GString *replacement_str = NULL;
+ g_return_val_if_fail(rows != NULL, NULL); + /* Adding header to replacement */ replacement_str = g_string_new("<table>\n");
@@ -112,6 +115,8 @@ guint j; GString *replacement_str = NULL;
+ g_return_val_if_fail(rows != NULL, NULL); + /* Adding header to replacement */ replacement_str = g_string_new("\begin{tabular}{}\n");
@@ -147,6 +152,8 @@ guint j; GString *replacement_str = NULL;
+ g_return_val_if_fail(rows != NULL, NULL); + /* Adding start */ replacement_str = g_string_new("(\n");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org