From: Hendrik S. <sat...@gm...> - 2006-10-24 07:39:21
|
Am Dienstag 24 Oktober 2006 08:53 schrieb Christian W. Zuckschwerdt: > Get http://triq.net/obexftp/obexftp-0.22-pre3.tar.bz2 and use something To answer a question from your source code: /* ok to to free an optarg? */ No, it is not. You shall only use free on memory that you malloc'd. The optarg assignment is ok (they won't be gone during the program's runtime) but the free() isn't. Just reassign the new value. HS |