Crashes with builds from today and yesterday [typo fix]
Roland Illig
roland.illig at gmx.de
Wed Sep 22 12:10:27 UTC 2004
Roland Illig wrote:
> ----
> g_strdup: If you use g_strdup to create a local copy of a string, use
> the following pattern to keep the reference.
>
> char * const pathref = g_strdup(argument);
> /* ... */
> g_free (pathref);
>
- The "const" will make the pointer unmodifiable (local_copy++
+ The "const" will make the pointer unmodifiable (pathref++
> is not possible), but you can still modify the string contents.
> ----
Roland
More information about the mc-devel
mailing list