Why not 
if (!buf_size) {