static blkcnt_t dir_blocks;
static ulong num_files;
static bm bookmark[BM_MAX];
-static size_t g_tmpfplen; /* path to tmp files for copy without X, keybind help and file stats */
+static size_t g_tmpfplen;
static uchar g_crc;
static uchar BLK_SHIFT = 9;
static uchar opener_flag = F_NOTRACE;
if (!copybufpos)
return;
- if (g_tmpfpath[0])
- xstrlcpy(g_tmpfpath + g_tmpfplen - 1, messages[STR_TMPFILE],
- TMP_LEN_MAX - g_tmpfplen);
- else {
- DPRINTF_S(messages[STR_NOHOME_ID]);
- return;
- }
+ xstrlcpy(g_tmpfpath + g_tmpfplen - 1, messages[STR_TMPFILE], TMP_LEN_MAX - g_tmpfplen);
fd = mkstemp(g_tmpfpath);
if (fd == -1) {
size_t r;
FILE *fp;
- if (g_tmpfpath[0])
- xstrlcpy(g_tmpfpath + g_tmpfplen - 1, messages[STR_TMPFILE],
- TMP_LEN_MAX - g_tmpfplen);
- else
- return FALSE;
+ xstrlcpy(g_tmpfpath + g_tmpfplen - 1, messages[STR_TMPFILE], TMP_LEN_MAX - g_tmpfplen);
fd = mkstemp(g_tmpfpath);
if (fd == -1)
"cc SSHFS mount u Unmount\n"
"b^P Prompt ^N Note = Launcher\n"};
- if (g_tmpfpath[0])
- xstrlcpy(g_tmpfpath + g_tmpfplen - 1, messages[STR_TMPFILE],
- TMP_LEN_MAX - g_tmpfplen);
- else {
- printmsg(messages[STR_NOHOME_ID]);
- return FALSE;
- }
+ xstrlcpy(g_tmpfpath + g_tmpfplen - 1, messages[STR_TMPFILE], TMP_LEN_MAX - g_tmpfplen);
fd = mkstemp(g_tmpfpath);
if (fd == -1)