]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 3 Nov 2009 01:01:07 +0000 (01:01 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 3 Nov 2009 01:01:07 +0000 (01:01 +0000)
magick/client.c

index 50b47cd5d2ed6655aa68fcb1cbf14795e2f82488..a7295aeef5ead2be0abc2f6e78e91cdad2eb943c 100644 (file)
 #include "magick/client.h"
 #include "magick/string_.h"
 \f
-/*
-  Static declaractions.
-*/
-static char
-  client_name[MaxTextExtent] = "ImageMagick",
-  client_path[MaxTextExtent] = "";
-\f
 /*
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %                                                                             %
@@ -70,7 +63,7 @@ static char
 */
 MagickExport const char *GetClientName(void)
 {
-  return(client_name);
+  return(SetClientName((const char *) NULL));
 }
 \f
 /*
@@ -93,7 +86,7 @@ MagickExport const char *GetClientName(void)
 */
 MagickExport const char *GetClientPath(void)
 {
-  return(client_path);
+  return(SetClientPath((const char *) NULL));
 }
 \f
 /*
@@ -115,13 +108,14 @@ MagickExport const char *GetClientPath(void)
 %
 %  A description of each parameter follows:
 %
-%    o client_name: SetClientName() returns the current client name.
-%
 %    o name: Specifies the new client name.
 %
 */
 MagickExport const char *SetClientName(const char *name)
 {
+  static char
+    client_name[MaxTextExtent] = "Magick";
+
   if ((name != (char *) NULL) && (*name != '\0'))
     (void) CopyMagickString(client_name,name,MaxTextExtent);
   return(client_name);
@@ -148,14 +142,14 @@ MagickExport const char *SetClientName(const char *name)
 %
 %  A description of each parameter follows:
 %
-%    o client_path: Method SetClientPath returns the current client path.
-%
 %    o path: Specifies the new client path.
 %
-%
 */
 MagickExport const char *SetClientPath(const char *path)
 {
+  static char
+    client_path[MaxTextExtent] = "";
+
   if ((path != (char *) NULL) && (*path != '\0'))
     (void) CopyMagickString(client_path,path,MaxTextExtent);
   return(client_path);