Revision: 283 Author: martin2812 Date: Fri Sep 24 13:07:47 2010 Log: util.c: In function `Util_encodeServiceName: http://code.google.com/p/monit/source/detail?r=283
Modified: /trunk/util.c ======================================= --- /trunk/util.c Fri Sep 24 11:47:07 2010 +++ /trunk/util.c Fri Sep 24 13:07:47 2010 @@ -1602,8 +1602,9 @@ // NOTE: To be used to URL encode service names when ready char *Util_encodeServiceName(char *name) { int i; + char *s; ASSERT(name); - char *s = Util_urlEncode(name); + s = Util_urlEncode(name); for (i = 0; s[i]; i++) if (s[i] == '/') return Util_replaceString(&s, "/", "%2F"); return s; _______________________________________________ monit-dev mailing list monit-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/monit-dev