Lines Matching defs:gDeviceNames
23 char **gDeviceNames = NULL;
93 ASSERT(gDeviceNames == NULL);
94 gDeviceNames = malloc(sizeof(char *) * (sDeviceCount + 1));
101 if (gDeviceNames != NULL) {
103 for (i = 0; gDeviceNames [i] != NULL; i++) {
104 free(gDeviceNames[i]);
107 free(gDeviceNames);
108 gDeviceNames = NULL;
119 ASSERT(gDeviceNames != NULL);
122 gDeviceNames[i++] = strdup(device->name);
125 gDeviceNames[i] = NULL;