Disclosed herein is a polymer composition comprising an effective amount of a hydrophobically-modified polymer having functional groups along the backbone occupied by a fatty anhydride moiety. The polymer composition has a potent hemostatic action by gelling blood upon contact, and is suitable for treating internal and external bleeds. As disclosed herein, the modified polymer can be generated without the use of toxic reagents that would require removal from the product. Further, compositions are shelf stable even in a flowable form. That is, the hydrophobic grafts are not lost under product storage conditions (e.g., room temperature storage).