projects
/
platform
/
upstream
/
polkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e0b9b4
)
Fix logic error in pk-example-frobnicate
author
David Zeuthen
<davidz@redhat.com>
Fri, 11 Dec 2009 16:35:01 +0000
(11:35 -0500)
committer
David Zeuthen
<davidz@redhat.com>
Fri, 11 Dec 2009 16:35:01 +0000
(11:35 -0500)
Signed-off-by: David Zeuthen <davidz@redhat.com>
src/examples/frobnicate.c
patch
|
blob
|
history
diff --git
a/src/examples/frobnicate.c
b/src/examples/frobnicate.c
index
c87c2dc
..
7ca6c46
100644
(file)
--- 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;
}