Home GnuPG
Diffusion GnuPG e64c805b0c27

common: Avoid warning about const char ** assignment.
e64c805b0c27Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

common: Avoid warning about const char ** assignment.

* common/mkdir_p.c (gnupg_amkdir_p): Also strdup first item.  Return
an error on malloc failure.
(gnupg_mkdir_p): Fix type of dirs and tmp_dirs.

The code was correct but it inhibits type checking. Instead of
casting it seems easier to simply allocate also the the first item in
DIRS.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Oct 18 2015, 7:37 PM
Parents
rG5aa1b392b1bf: Move http module from common/ to dirmngr/.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGe64c805b0c27: common: Avoid warning about const char ** assignment. (authored by Werner Koch <wk@gnupg.org>).Oct 18 2015, 8:08 PM