avoid unnecessary/leaky use of strdup.
authorJim Meyering <meyering@redhat.com>
Tue, 4 Mar 2008 13:19:45 +0000 (14:19 +0100)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 4 Mar 2008 21:26:07 +0000 (16:26 -0500)
commit038354db125c1471d283c30dbade9fbb7e1eefb1
tree75a6a2167f010a0332eed150938170a89860b85a
parenta8a97bc37d08da95b4e7a7907ba18a5e8447bc7e
avoid unnecessary/leaky use of strdup.

* polkit-grant-helper.c (main): Move the declaration of "buf"
to the outer scope and use a pointer into it, instead.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: David Zeuthen <davidz@redhat.com>
src/polkit-grant/polkit-grant-helper.c