clean up handling of thread/nothread mode, locking
[musl] / src / stdio / ftrylockfile.c
index 67f4b6a..0b0e44a 100644 (file)
@@ -4,7 +4,6 @@
 int ftrylockfile(FILE *f)
 {
        int tid = pthread_self()->tid;
 int ftrylockfile(FILE *f)
 {
        int tid = pthread_self()->tid;
-       if (!libc.lockfile) libc.lockfile = __lockfile;
        if (f->lock == tid) {
                if (f->lockcount == INT_MAX)
                        return -1;
        if (f->lock == tid) {
                if (f->lockcount == INT_MAX)
                        return -1;