}
else
{
- source_dir = strdup(".");
+ source_dir = ".";
source_file = file_set[i];
}
void *buffer,
int size)
{
- int fnew;
+ int fnew = -1;
int rc=0;
unsigned int mode;
Boolean BufferIsExecutable=FALSE;
else
{
close(fnew);
+ fnew = -1;
DPRINTF (("CreateBuffeFromFile: Target file %s created\n",
fully_qualified_name));
}
}
- /* Handle errors */
+ if (fnew >= 0)
+ close(fnew);
+
+/* Handle errors */
if (rc < 0)
{
switch (savedError)
int index)
{
- char *msgptr,*err_msg,*title,*tchar;
+ char *msgptr,*err_msg = NULL,*title,*tchar;
Widget dialogwidget;
if (cb_data->mode == MOVE_FILE)