summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Rybar <jrybar@redhat.com>2020-01-27 18:07:57 +0000
committerJan Rybar <jrybar@redhat.com>2020-01-27 18:07:57 +0000
commit0e1d33b473748a63ce76133483ceda3397302857 (patch)
tree4db2e061e7d573b255c9f02c17fe862ac37c3ddd
parentb806f0c0dd715b860b99d0851505408b482eff05 (diff)
downloadpolkit-0e1d33b473748a63ce76133483ceda3397302857.tar.gz
Freeing uninitialized memory
-rw-r--r--src/polkitagent/polkitagenthelper-bsdauth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/polkitagent/polkitagenthelper-bsdauth.c b/src/polkitagent/polkitagenthelper-bsdauth.c
index b410b45..b105180 100644
--- a/src/polkitagent/polkitagenthelper-bsdauth.c
+++ b/src/polkitagent/polkitagenthelper-bsdauth.c
@@ -45,7 +45,7 @@ main (int argc, char *argv[])
{
struct passwd *pw;
const char *user_to_auth;
- char *cookie;
+ char *cookie = NULL;
/* clear the entire environment to avoid attacks with
libraries honoring environment variables */