Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 19811
0 votes

pset5 Speller -load - Valgrind error - "invalid read of size 8"(segmentation fault)

Your problem arises from current_node -> child[childIndex]->parent = current_node;. First off, unlike in math, A=B does not mean the same as B=A. If you want to change your current_node node, place i …
Edward Lee's user avatar
1 vote
Accepted

Segmentation error on PSET5 unload function

I believe what went wrong in your first clear function was an issue of scope. In your first function, you declared index outside of your while loop, so when the recursion kicks in, the loop increments …
Edward Lee's user avatar