Commit a80c54f8 authored by Victor Ananjevsky's avatar Victor Ananjevsky

check for possible errors wheh reading calendar details file

parent 637b13fa
......@@ -47,7 +47,8 @@ parse_details ()
/* read string */
memset (buf, 0, 4096);
fgets (buf, 4096, f);
if (fgets (buf, 4096, f) == NULL)
break;
if (strlen (buf) > 0)
{
gchar **dtl = g_strsplit (buf, " ", 2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment