Add some missing braces and fix some errant spaces

Mon, 29 Apr 2019 17:09:28 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Mon, 29 Apr 2019 17:09:28 -0500
changeset 39571
b88f466a4a4d
parent 39570
a6ec70c31e9e
child 39572
985cb679a998

Add some missing braces and fix some errant spaces

pidgin/pidgingdkpixbuf.c file | annotate | diff | comparison | revisions
--- a/pidgin/pidgingdkpixbuf.c	Mon Apr 29 16:52:33 2019 -0500
+++ b/pidgin/pidgingdkpixbuf.c	Mon Apr 29 17:09:28 2019 -0500
@@ -67,8 +67,9 @@
 	rowstride = gdk_pixbuf_get_rowstride(pixbuf);
 	pixels = gdk_pixbuf_get_pixels(pixbuf);
 
-	if (width < 6 || height < 6)
+	if (width < 6 || height < 6) {
 		return;
+	}
 
 	/* The following code will conver the alpha of the pixel data in all
 	 * corners to look something like the following diagram.
@@ -118,8 +119,9 @@
 	guchar *pixels;
 	guchar *row;
 
-	if (!gdk_pixbuf_get_has_alpha(pixbuf))
+	if (!gdk_pixbuf_get_has_alpha(pixbuf)) {
 		return TRUE;
+	}
 
 	height = gdk_pixbuf_get_height (pixbuf);
 	rowstride = gdk_pixbuf_get_rowstride (pixbuf);
@@ -128,8 +130,9 @@
 	/* check the top row */
 	row = pixels;
 	for (i = 3; i < rowstride; i+=4) {
-		if (row[i] < 0xfe)
+		if (row[i] < 0xfe) {
 			return FALSE;
+		}
 	}
 
 	/* check the left and right sides */
@@ -137,14 +140,15 @@
 		row = pixels + (i * rowstride);
 		if (row[3] < 0xfe || row[rowstride - 1] < 0xfe) {
 			return FALSE;
-	    }
+		}
 	}
 
 	/* check the bottom */
 	row = pixels + ((height - 1) * rowstride);
 	for (i = 3; i < rowstride; i += 4) {
-		if (row[i] < 0xfe)
+		if (row[i] < 0xfe) {
 			return FALSE;
+		}
 	}
 
 	return TRUE;

mercurial