fix indention with spaces in powerpc asm
[oweals/musl.git] / src / stdio / fwide.c
index f4da47f6da8ceca422dee4f6c4b1ad45af045ca5..48480685aa4b63a664ccc842548aa8f663c9b662 100644 (file)
@@ -5,6 +5,8 @@
 
 int fwide(FILE *f, int mode)
 {
-       if (!f->mode) f->mode = NORMALIZE(mode);
-       return f->mode;
+       FLOCK(f);
+       if (!f->mode) mode = f->mode = NORMALIZE(mode);
+       FUNLOCK(f);
+       return mode;
 }