Switch to unified view

a/src/utils/smallut.cpp b/src/utils/smallut.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: smallut.cpp,v 1.10 2005-11-25 14:36:45 dockes Exp $ (C) 2004 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: smallut.cpp,v 1.11 2005-12-13 12:43:00 dockes Exp $ (C) 2004 J.F.Dockes";
3
#endif
3
#endif
4
#ifndef TEST_SMALLUT
4
#ifndef TEST_SMALLUT
5
#include <string>
5
#include <string>
6
#include <ctype.h>
6
#include <ctype.h>
7
#include <unistd.h>
7
#include <unistd.h>
...
...
25
    const char *tmpdir = getenv("RECOLL_TMPDIR");
25
    const char *tmpdir = getenv("RECOLL_TMPDIR");
26
    if (!tmpdir)
26
    if (!tmpdir)
27
    tmpdir = getenv("TMPDIR");
27
    tmpdir = getenv("TMPDIR");
28
    if (!tmpdir)
28
    if (!tmpdir)
29
    tmpdir = "/tmp";
29
    tmpdir = "/tmp";
30
    tdir = tmpdir;
31
    path_cat(tdir, "rcltmpXXXXXX");
30
    tdir = path_cat(tmpdir, "rcltmpXXXXXX");
31
32
    {
32
    {
33
    char *cp = strdup(tdir.c_str());
33
    char *cp = strdup(tdir.c_str());
34
    if (!cp) {
34
    if (!cp) {
35
        LOGERR(("maketmpdir: out of memory (for file name !)\n"));
35
        LOGERR(("maketmpdir: out of memory (for file name !)\n"));
36
        tdir.erase();
36
        tdir.erase();