Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

HTMLTable: Don't mix up definition of variables and code

  • Loading branch information...
commit bb119fb46838dcf267c7967b958a785d2982b6f6 1 parent 46b4bee
@frlan frlan authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 htmltable/src/htmltable.c
View
5 htmltable/src/htmltable.c
@@ -61,6 +61,9 @@ void convert_to_table(gboolean header)
/* Checking whether we do have something we can work on - Returning if not */
if (rows != NULL)
{
+ guint i;
+ guint j;
+
/* Adding header to replacement */
replacement_str = g_string_new("<table>\n");
@@ -73,8 +76,6 @@ void convert_to_table(gboolean header)
/* Iteration onto rows and building up lines of table for
* replacement */
- guint i;
- guint j;
for (i = 0; rows[i] != NULL ; i++)
{
gchar **columns = NULL;
Please sign in to comment.
Something went wrong with that request. Please try again.