Hi,

I have a pointer to a request_t* org_req.

And I would like to change the url_path of that org_req struct:

So I did this:

 char* newURL = "http:// .... " ;

    request_t* new_req = urlParse(org_req->method,  newURL);
     

    // set the org_req urlpath to the new_req's urlpath
    stringReset(&org_req->urlpath, new_req->urlpath.buf);

    // reget to make sure it is set.
    printf (" url 2 %s\n",  mem->request->urlpath);

however, the last line above, I get a segmentation fault.

Can you please tell me what am I missing?

Thank you.





       
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for 
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

Reply via email to