GUAC-847: Embrace the pointless initialization.
This commit is contained in:
parent
eb39afc68a
commit
29c3aff5e2
@ -105,14 +105,15 @@ static int guacd_conf_callback(const char* section, const char* param, const cha
|
||||
|
||||
int guacd_conf_parse_file(guacd_config* conf, int fd) {
|
||||
|
||||
int line = 1;
|
||||
char* line_start = NULL; /* Pointless initialization, but this is not obvious enough for some compilers */
|
||||
int parsed = 0;
|
||||
int chars_read;
|
||||
|
||||
char buffer[8192];
|
||||
int chars_read;
|
||||
int length = 0;
|
||||
|
||||
int line = 1;
|
||||
char* line_start = buffer;
|
||||
int parsed = 0;
|
||||
|
||||
/* Attempt to fill remaining space in buffer */
|
||||
while ((chars_read = read(fd, buffer + length, sizeof(buffer) - length)) > 0) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user