aboutsummaryrefslogtreecommitdiffstats
path: root/src/libpts
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2011-09-10 11:57:17 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-09-10 22:39:56 +0200
commitcf8fd42c7707baf638c2519b4151ac249ddbc0e3 (patch)
treecc4d17feba05b0982cd235c099b2659c77458262 /src/libpts
parentbf60354917272eac7f73737e25b52cf5469a2fee (diff)
downloadstrongswan-cf8fd42c7707baf638c2519b4151ac249ddbc0e3.tar.bz2
strongswan-cf8fd42c7707baf638c2519b4151ac249ddbc0e3.tar.xz
correctly initialize error_code
Diffstat (limited to 'src/libpts')
-rw-r--r--src/libpts/pts/pts.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libpts/pts/pts.c b/src/libpts/pts/pts.c
index 8be5ead1b..3cef54555 100644
--- a/src/libpts/pts/pts.c
+++ b/src/libpts/pts/pts.c
@@ -276,7 +276,7 @@ METHOD(pts_t, is_path_valid, bool, private_pts_t *this, char *path,
int error;
struct stat sb;
- error_code = NULL;
+ *error_code = 0;
error = stat(path, &sb);
if (error == 0)
{
@@ -294,7 +294,8 @@ METHOD(pts_t, is_path_valid, bool, private_pts_t *this, char *path,
}
else
{
- DBG1(DBG_IMC, "error: %s occured while validating path: %s", strerror(error), path);
+ DBG1(DBG_IMC, "error: %s occured while validating path: %s",
+ strerror(error), path);
return FALSE;
}