Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/histolog.c @ 2232:c06488852cdc
hlog_read_history(): Remove a compilation warning
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 15 Nov 2015 17:05:07 +0100 |
parents | 736f9323d701 |
children | 2c7cca6dec6a |
comparison
equal
deleted
inserted
replaced
2231:387cea2a1a81 | 2232:c06488852cdc |
---|---|
228 guint noeol; | 228 guint noeol; |
229 | 229 |
230 if (fgets(data, data_size-1, fp) == NULL) | 230 if (fgets(data, data_size-1, fp) == NULL) |
231 break; | 231 break; |
232 ln++; | 232 ln++; |
233 | |
234 tail = data; | |
233 | 235 |
234 while (!feof(fp)) { | 236 while (!feof(fp)) { |
235 for (tail = data; *tail; tail++) ; | 237 for (tail = data; *tail; tail++) ; |
236 if (tail == data) { | 238 if (tail == data) { |
237 // That would happen if the log file has NUL characters... | 239 // That would happen if the log file has NUL characters... |