Lafayette-based Home Bancorp reported earnings of $1.2 million, or 18 cents per share, for the second quarter, compared to $618,000, or 24 cents per share, a year ago.

“Second-quarter performance was significantly impacted by the write down of one problem loan relationship in our Baton Rouge market,” President and Chief Executive Officer John W. Bordelon said.

Home Bancorp is the parent company of Home Bank. The company wrote off $1.8 million in bad loans during the second quarter, compared to $165,000 in the first quarter and $1.7 million in second-quarter 2012. The increase resulted primarily from a $1.7 million charge-off on a $1.9 million accounts receivable line of credit.

The bank did not disclose the name of the client.