summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f986aa1)
will be overwriten right after.
Fixes Coverity CID #
1372370.
}
sock = create_socket();
if (sock < 0) {
}
sock = create_socket();
if (sock < 0) {
- debug_print("no connection\n");
+ debug_print("no connection (socket create)\n");
return NO_CONNECTION;
}
memset(buf, '\0', sizeof(buf));
return NO_CONNECTION;
}
memset(buf, '\0', sizeof(buf));
command = g_strconcat(scan, " ", path, "\n", NULL);
debug_print("command: %s\n", command);
if (write(sock, command, strlen(command)) == -1) {
command = g_strconcat(scan, " ", path, "\n", NULL);
debug_print("command: %s\n", command);
if (write(sock, command, strlen(command)) == -1) {
- debug_print("no connection\n");
- stat = NO_CONNECTION;
+ debug_print("no connection (socket write)\n");
+ return NO_CONNECTION;
}
g_free(command);
memset(buf, '\0', sizeof(buf));
}
g_free(command);
memset(buf, '\0', sizeof(buf));