Author: muggenhor
Date: Thu Jul 24 20:18:07 2008
New Revision: 5658

URL: http://svn.gna.org/viewcvs/warzone?rev=5658&view=rev
Log:
 * Change strresGetString to return its string as const (to prevent potential 
double-free problems)
  * Instead use strdup() where a non-const reference to these strings is used
  * NOTE: This may introduce memory leaks, but I'd rather have memory leaks 
than double-frees, of which I'm frankly surprised that they don't occur 
''much'' more often
 * Change FindDroidTemplate to take its parameter as const
 * Don't multi-purpose the parameters of FindDroidTemplate as local variables
 * Store string variables in getName as const
 * scrvGetString:
  * Directly return the string it retrieved and use NULL to indicate failure
  * Return the string as `const'

Modified:
    trunk/lib/framework/strres.c
    trunk/lib/framework/strres.h
    trunk/src/game.c
    trunk/src/message.c
    trunk/src/scriptobj.c
    trunk/src/scriptvals.c
    trunk/src/scriptvals.h
    trunk/src/scriptvals_parser.y
    trunk/src/stats.c


_______________________________________________
Warzone-commits mailing list
Warzone-commits@gna.org
https://mail.gna.org/listinfo/warzone-commits

Reply via email to