diff options
author | Werner Koch <[email protected]> | 2015-10-18 17:37:41 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-10-18 18:08:37 +0000 |
commit | e64c805b0c270d859ddf2c35d573110cf25e8d48 (patch) | |
tree | 35abc3875ed85b0afdfd8b0ce53b80775c9580b1 /dirmngr/t-support.h | |
parent | Move http module from common/ to dirmngr/. (diff) | |
download | gnupg-e64c805b0c270d859ddf2c35d573110cf25e8d48.tar.gz gnupg-e64c805b0c270d859ddf2c35d573110cf25e8d48.zip |
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 <[email protected]>
Diffstat (limited to 'dirmngr/t-support.h')
0 files changed, 0 insertions, 0 deletions