rec_write.c:2567: warning: 'upd' may be used uninitialized in this function