apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: How to convert char[] to char*?
Date Wed, 29 May 2013 22:27:15 GMT
On Thu, 2013-05-30 at 00:06 +0200, Graf László wrote:
>              bufp = apr_palloc(r->pool, len);
>              bufp = buf;

What is the point of the above code? First some memory is allocated for
bufp, then it is ignored, as bufp actually becomes a pointer to the buf
array...

As for the segfault, run you code through gdb (or some other debugger)
and step through it while examining the contents of variables. That
should give you some clues.

-- 
Bojan


Mime
View raw message