Diabetes is associated with an increased risk of in-hospital mortality in liver cirrhosis with acute upper gastrointestinal bleeding.