Fix dereference in cwd option
authorJamy Timmermans <me@jamy.be>
Sat, 7 Nov 2015 12:11:55 +0000 (06:11 -0600)
committerJamy Timmermans <me@jamy.be>
Sat, 7 Nov 2015 12:11:55 +0000 (06:11 -0600)
contain.c

index 9b893426be5b503aaa05d8d2cc75f9e4a640fbcd..7a90ea8e57c302210ec8ae52f7525780ae448374 100644 (file)
--- a/contain.c
+++ b/contain.c
@@ -268,8 +268,8 @@ bool containMountFS(struct nsjconf_t * nsjconf)
                return false;
        }
        
-       if (chdir(&nsjconf->cwd) == -1) {
-               PLOG_E("chdir('%s')", &nsjconf->cwd);
+       if (chdir(nsjconf->cwd) == -1) {
+               PLOG_E("chdir('%s')", nsjconf->cwd);
                return false;
        }