Lines Matching refs:newnm
53 struct realmname *oldnm = NULL, *newnm = NULL;
92 newnm = (struct realmname*)malloc(sizeof(struct realmname));
93 if (newnm == NULL) {
97 newnm->id = id;
98 newnm->len = nxt - cur;
99 newnm->name = (char*)malloc(newnm->len + 1);
100 if (newnm->name == NULL) {
104 strncpy(newnm->name, cur, newnm->len);
105 newnm->name[newnm->len] = 0;
106 newnm->next = NULL;
109 oldnm->next = newnm;
111 realms = newnm;
112 oldnm = newnm;