Hi,
sync_pipe_close() returns an uninitialized value when it is passed
an already closed pipe.
Roy
From 8712b254ec5dff2b07f577796772b3fe51bc384b Mon Sep 17 00:00:00 2001
From: Roy Lee <[EMAIL PROTECTED]>
Date: Thu, 4 Sep 2008 16:15:57 +0800
Subject: [PATCH] Initialized r
---
lib/libtestsuite.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/libtestsuite.c b/lib/libtestsuite.c
index 9a55018..3d6d020 100644
--- a/lib/libtestsuite.c
+++ b/lib/libtestsuite.c
@@ -83,7 +83,7 @@ int sync_pipe_create(int fd[])
int sync_pipe_close(int fd[])
{
- int r;
+ int r = 0;
if (fd[0] != -1)
r = close (fd[0]);
--
1.5.6.5
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list