[Tkabber-dev] [tclgpg commit] r39 - trunk

codesite-noreply at google.com codesite-noreply at google.com
Tue Nov 18 23:46:43 MSK 2008


Author: sgolovan
Date: Tue Nov 18 12:46:08 2008
New Revision: 39

Modified:
    trunk/ChangeLog
    trunk/tclgpg.c

Log:
	* tclgpg.c: Added check if the memory for gpg options is allocated.


Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Tue Nov 18 12:46:08 2008
@@ -13,6 +13,8 @@
  	* tclgpg.c: Add --enable-special-filenames options only if these
  	  special filenames are actually used.

+	* tclgpg.c: Added check if the memory for gpg options is allocated.
+
  2008-10-28  Sergei Golovan  <sgolovan at nes.ru>

  	* tclgpg.tcl: Made the first gpg call use auto_execok.

Modified: trunk/tclgpg.c
==============================================================================
--- trunk/tclgpg.c	(original)
+++ trunk/tclgpg.c	Tue Nov 18 12:46:08 2008
@@ -170,7 +170,9 @@

          executable = Tcl_GetString(objv[1]);

-        argv = (char **) ckalloc((objc + 16) * sizeof(char *));
+        argv = (char **) attemptckalloc((objc + 16) * sizeof(char *));
+
+        if (argv == NULL) _exit(1);

          argc = 0;



More information about the Tkabber-dev mailing list