[svn] assuan - r312 - trunk/src
svn author marcus
cvs at cvs.gnupg.org
Fri Oct 30 15:13:22 CET 2009
Author: marcus
Date: 2009-10-30 15:13:22 +0100 (Fri, 30 Oct 2009)
New Revision: 312
Modified:
trunk/src/ChangeLog
trunk/src/system.c
Log:
2009-10-30 Marcus Brinkmann <marcus at g10code.de>
* system.c (_assuan_spawn): Check fd_child_list before dumping it.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2009-10-20 15:50:59 UTC (rev 311)
+++ trunk/src/ChangeLog 2009-10-30 14:13:22 UTC (rev 312)
@@ -1,3 +1,7 @@
+2009-10-30 Marcus Brinkmann <marcus at g10code.de>
+
+ * system.c (_assuan_spawn): Check fd_child_list before dumping it.
+
2009-10-20 Marcus Brinkmann <marcus at g10code.de>
* assuan.h (__assuan_usleep): Add declaration.
Modified: trunk/src/system.c
===================================================================
--- trunk/src/system.c 2009-10-20 15:50:59 UTC (rev 311)
+++ trunk/src/system.c 2009-10-30 14:13:22 UTC (rev 312)
@@ -783,10 +783,13 @@
}
}
i = 0;
- while (fd_child_list[i] != ASSUAN_INVALID_FD)
+ if (fd_child_list)
{
- TRACE_LOG2 ("fd_child_list[%2i] = 0x%x", i, fd_child_list[i]);
- i++;
+ while (fd_child_list[i] != ASSUAN_INVALID_FD)
+ {
+ TRACE_LOG2 ("fd_child_list[%2i] = 0x%x", i, fd_child_list[i]);
+ i++;
+ }
}
res = (ctx->system.spawn) (ctx, r_pid, name, argv, fd_in, fd_out,
More information about the Gnupg-commits
mailing list