Valgrind: lecture non valide de la taille 1

Je vais avoir un problème avec valgrind:
C'est mon programme (enfin la partie principale où les erreurs apparaissent):

int main()
{
char comanda[N];
....
char *p;
while( fgets(comanda,100,stdin)!=NULL)
    {
    p=strtok(comanda," \n");
    if (strcmp(comanda,"INIT")==0)
        {
        p=strtok(NULL," ");
        Init(n);        
        }
395 >>if (strcmp(p,"DUMP")==0)
        {
        Dump(n);}
    if (strcmp(p,"ALLOC")==0)
        {
        Alloc(j,n);
        }
    ....return 0;}

Et quand je lance valgrind il dit:

Invalid read of size 1
at 0x401569: main (:395)
Address 0x0 is not stack'd malloc'd or (recently) free'd

Je ne peux pas comprendre quel est le problème avec ce programme.

source d'informationauteur user1934103