Commit 3e82e172 authored by David Zeuthen's avatar David Zeuthen

Fix logic error in pk-example-frobnicate

Signed-off-by: default avatarDavid Zeuthen <>
parent 8e0b9b47
......@@ -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)
if (getcwd (cwd, sizeof cwd) == NULL)
g_printerr ("Error getting cwd: %s", g_strerror (errno));
g_printerr ("Error getting cwd: %s\n", g_strerror (errno));
goto out;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment