comparison src/buddy.c @ 318:35796808896a

[gaim-migrate @ 328] This is the way it's *SUPPOSED* to be done. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 02 Jun 2000 18:59:27 +0000
parents 7b06ba09ffe2
children 9d258a0aa560
comparison
equal deleted inserted replaced
317:a91a898ea22d 318:35796808896a
896 } 896 }
897 897
898 898
899 struct group *add_group(char *group) 899 struct group *add_group(char *group)
900 { 900 {
901 struct group *g; 901 struct group *g = find_group(group);
902 if (g)
903 return g;
902 g = (struct group *)g_new0(struct group, 1); 904 g = (struct group *)g_new0(struct group, 1);
903 if (!g) 905 if (!g)
904 return NULL; 906 return NULL;
905 907
906 strncpy(g->name, group, sizeof(g->name)); 908 strncpy(g->name, group, sizeof(g->name));