mirror of https://github.com/M66B/NetGuard.git
Prevent crash
This commit is contained in:
parent
52e501c516
commit
51332c6910
|
@ -436,6 +436,7 @@ jint get_uid(const int version, const int protocol,
|
||||||
// Scan proc file
|
// Scan proc file
|
||||||
jint u;
|
jint u;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
*line = 0;
|
||||||
while (fgets(line, sizeof(line), fd) != NULL) {
|
while (fgets(line, sizeof(line), fd) != NULL) {
|
||||||
if (i++) {
|
if (i++) {
|
||||||
*hex = 0;
|
*hex = 0;
|
||||||
|
|
Loading…
Reference in New Issue