Prevent crash

This commit is contained in:
M66B 2016-04-07 09:20:26 +02:00
parent 52e501c516
commit 51332c6910
1 changed files with 1 additions and 0 deletions

View File

@ -436,6 +436,7 @@ jint get_uid(const int version, const int protocol,
// Scan proc file
jint u;
int i = 0;
*line = 0;
while (fgets(line, sizeof(line), fd) != NULL) {
if (i++) {
*hex = 0;