When using PHP 5.4 you will receive a strict warning if you save a password from a user account.

Strict warning: Only variables should be passed by reference in htpasswdsync_field_attach_submit() (line 399 of HTPasswdSync.module).

To correct the issue the db_query function needs to be assigned to a variable before you can call reset on the result.

Line 399 in HTPasswdSync.module should be changed to the code below:

$result = db_query('SELECT pass FROM {users} WHERE uid=:uid', array(':uid' => $entity->uid))->fetchCol();
$r = reset($result);