mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-04 20:38:50 +01:00
Avoid const compiler warning
This commit is contained in:
parent
2a53bb0e24
commit
97d3149e92
@ -1,5 +1,7 @@
|
||||
2001-12-22 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* exec.c (make_tempdir): avoid compiler warning with const
|
||||
|
||||
* mkdtemp.c (mkdtemp): catch the empty ("") string case in case
|
||||
someone repurposes mkdtemp at some point.
|
||||
|
||||
|
@ -43,7 +43,7 @@ char *mkdtemp(char *template);
|
||||
/* Makes a temp directory and filenames */
|
||||
static int make_tempdir(struct exec_info *info)
|
||||
{
|
||||
const char *tmp=opt.temp_dir;
|
||||
char *tmp=opt.temp_dir;
|
||||
|
||||
/* Make up the temp dir and files in case we need them */
|
||||
if(tmp==NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user