Again, no need to memset; but you should check sscanf()'s return is 1.