mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
8970decff9
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
30 lines
1 KiB
Diff
30 lines
1 KiB
Diff
Description: Properly initialize GraphicsMagick
|
|
Quoting from GraphicsMagick's NEWS file "
|
|
1.3.8 (January 21, 2010)
|
|
========================
|
|
[...]
|
|
Behavior Changes:
|
|
InitializeMagick() MUST be invoked prior to using any Magick API function.
|
|
Failure to do so will likely lead to an immediate application crash. This is
|
|
due to initialization and runtime changes intended to improve thread safety
|
|
and efficiency. Previously it was only strongly recommended to invoke
|
|
InitializeMagick().
|
|
"
|
|
Author: Galland (https://launchpad.net/~victor-lopez)
|
|
Bug-Ubuntu: https://bugs.launchpad.net/bugs/636021
|
|
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599915
|
|
Bug: http://sourceforge.net/tracker/index.php?func=detail&aid=3136111&group_id=118983&atid=682742
|
|
Forwarded: yes
|
|
|
|
--- a/src/main.cc
|
|
+++ b/src/main.cc
|
|
@@ -97,6 +97,9 @@
|
|
double scale = 1;
|
|
int flags = 0;
|
|
|
|
+#ifndef LITE
|
|
+ InitializeMagick(NULL);
|
|
+#endif /* ! LITE */
|
|
int k, c;
|
|
while ((c = getopt_long (argc, argv, "ac:f:hl:o:p:vVw:x:", opts, &k)) != -1)
|
|
switch (c) {
|