Mercurial > hg > xmms-sid
comparison src/xs_config.c @ 605:0675613af00c
Use g_strdup()
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 31 Aug 2007 16:52:05 +0000 |
parents | 2729318c311b |
children | e22db8f24976 |
comparison
equal
deleted
inserted
replaced
604:2729318c311b | 605:0675613af00c |
---|---|
323 | 323 |
324 g_snprintf(tmpKey, sizeof(tmpKey), "filter%dName", nFilter); | 324 g_snprintf(tmpKey, sizeof(tmpKey), "filter%dName", nFilter); |
325 if (!XS_CFG_GET_STRING(cfg, XS_CONFIG_IDENT, tmpKey, &tmpStr)) | 325 if (!XS_CFG_GET_STRING(cfg, XS_CONFIG_IDENT, tmpKey, &tmpStr)) |
326 return FALSE; | 326 return FALSE; |
327 | 327 |
328 pResult->name = strdup(tmpStr); | 328 pResult->name = g_strdup(tmpStr); |
329 if (pResult->name == NULL) { | 329 if (pResult->name == NULL) { |
330 g_free(pResult); | 330 g_free(pResult); |
331 return FALSE; | 331 return FALSE; |
332 } | 332 } |
333 | 333 |