1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

Avoid const compiler warning

This commit is contained in:
David Shaw 2001-12-22 15:54:12 +00:00
parent 2a53bb0e24
commit 97d3149e92
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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)