add newline char when two lines are concatenated
fix uninitialised memory in merge_group_entries causes segfault in useradd by
changing a call to malloc to a call to calloc