Fix condition depending on uninitialized value in SAO