make/test_mkstemp.c

Sun, 08 Feb 2026 14:22:13 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 08 Feb 2026 14:22:13 +0100
changeset 1705
4df57f540e52
parent 1661
a389bf17eaaa
permissions
-rw-r--r--

incorrect nonnull-attribute for various list.h functions - fixes #796

#include <stdlib.h>

static void test_mkstemp() {
    char tpl[] = "/tmp/testXXXXXX";
    int fd = mkstemp(tpl);
    // never called, no need to close fd
}

int main() {
    return 0;
}

mercurial