use the right pointer to insert the new command fix #12

This commit is contained in:
prozessorkern 2019-06-26 21:54:15 +02:00
parent 4dd1b0638f
commit 0b52a2f246

View File

@ -166,7 +166,7 @@ shellmatta_retCode_t shellmatta_addCmd(shellmatta_handle_t handle, shellmatta_cm
{
/* nothing to do */
}
prevCmd = &tempCmd;
prevCmd = &(tempCmd->next);
tempCmd = tempCmd->next;
}
}