summaryrefslogtreecommitdiff
path: root/graphics/reallyslick/files/patch-other_src_matrixview.c
blob: a5c9028cb29ec16aa21d66a1cff4aee008c050bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- other_src/matrixview.c.orig	Sun Feb 26 08:55:26 2006
+++ other_src/matrixview.c	Fri Apr 28 09:33:18 2006
@@ -94,13 +94,15 @@
 
 // Directory scanning + image loading code in a separate function callable either from loadNextImage or another thread if pthreads is available.
 void loadNextImageFromDisk() {
-	MagickWand *magick_wand = NewMagickWand();
+	MagickWand *magick_wand;
 	ExceptionInfo exception;
 	int dirLoop = 0;
+	int imageLoaded = 0;
+
+	magick_wand = NewMagickWand();
 
 	GetExceptionInfo (&exception);
 
-	int imageLoaded = 0;
 	do {
 		struct dirent *file;