Author: gluke
Email: [EMAIL PROTECTED]
Message:
> if(aprog){
> ares=fgets(aliastr,sizeof(aliastr),aprog);
> pclose(aprog);
> if(!ares){
> UdmLog(Indexer,UDM_LOG_ERROR,"AliasProg didn't
>return result: '%s'",cmd);
> return(IND_ERROR);
> }
> //mkl else {
> // // we got an alias back, so if we set this to Doc->url we
> should be fine
> // Doc-url = ares;
> // Would that work, or do I generate memory leaks, or is the Doc-url
> already saved at this point of the program execution
> // }
> }else{
> UdmLog(Indexer,UDM_LOG_ERROR,"Can't start AliasProg:
>'%s'",cmd);
> return(IND_ERROR);
> }
>
> Alexander, if you read it, I would very much appreciate if you could
> give me some help here. Unfortunately its ages ago that I wrote
> something in C, and I am not sure, if I can simply assign the pointers
> or if I have to use strdup or strcpy.
I think you can use something like this:
UDM_FREE(Doc->Url);
Doc->Url=strdup(aliastr);
But i think this is not sufficient to make it work.
It is not my code so i dont sure about it.
Alexander cannot answer your question now.
Please wait for him several days.
I am sorry for a delay.
Reply: <http://www.mnogosearch.org/board/message.php?id=2712>
___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]