Non-cached calls to xdgRuntimeDirectory use wrong env. variable

Bug #1821670 reported by Ed Bruck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libxdg-basedir (Ubuntu)
New
Undecided
Unassigned

Bug Description

xdgRuntimeDirectory uses wrong environment variable when called with a null handle. My understanding is that it should use XDG_RUNTIME_DIR instead of XDG_RUNTIME_DIRECTORY:

const char * xdgRuntimeDirectory(xdgHandle *handle)
{
    if (handle)
        return xdgGetCache(handle)->runtimeDirectory;
    else
        return xdgEnvDup("XDG_RUNTIME_DIRECTORY");
}

Calling with NULL returns a NULL pointer, because XDG_RUNTIME_DIRECTORY does not exist.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.