Skip to content

Commit 09c3d77

Browse files
committed
apt: debconf-helper: Avoid redundant '\n' in g_error()
1 parent 53202e4 commit 09c3d77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backends/apt/pk-debconf-helper.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ int main(void)
3030

3131

3232
if (sd_listen_fds (0) != 1) {
33-
g_error("No or too many file descriptors received.\n");
33+
g_error("No or too many file descriptors received.");
3434
exit(1);
3535
}
3636

3737
fd = SD_LISTEN_FDS_START + 0;
3838
socket = g_socket_new_from_fd (fd, &error);
3939

4040
if (error != NULL) {
41-
g_error ("%s\n", error->message);
41+
g_error ("%s", error->message);
4242
return 1;
4343
}
4444

4545
helper = pk_client_helper_new ();
4646
if (!pk_client_helper_start_with_socket (helper, socket, argv, envp, &error)) {
47-
g_error ("%s\n", error->message);
47+
g_error ("%s", error->message);
4848
return 1;
4949
}
5050

0 commit comments

Comments
 (0)