PolicyKit: Branch 'master'
David Zeuthen
david at kemper.freedesktop.org
Fri Dec 11 08:36:08 PST 2009
src/examples/frobnicate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 3e82e172f295f4d5ac4ea97b114f19999d69235e
Author: David Zeuthen <davidz at redhat.com>
Date: Fri Dec 11 11:35:01 2009 -0500
Fix logic error in pk-example-frobnicate
Signed-off-by: David Zeuthen <davidz at redhat.com>
diff --git a/src/examples/frobnicate.c b/src/examples/frobnicate.c
index c87c2dc..7ca6c46 100644
--- a/src/examples/frobnicate.c
+++ b/src/examples/frobnicate.c
@@ -44,12 +44,12 @@ main (int argc, char *argv[])
env = NULL;
#ifdef __GLIBC__
- if ((cwd = get_current_dir_name ()))
+ if ((cwd = get_current_dir_name ()) == NULL)
#else
if (getcwd (cwd, sizeof cwd) == NULL)
#endif
{
- g_printerr ("Error getting cwd: %s", g_strerror (errno));
+ g_printerr ("Error getting cwd: %s\n", g_strerror (errno));
goto out;
}
More information about the hal-commit
mailing list