[...]
doh! Like a good fluorescent lightbulb - it just dawned on me...
+
+ for (i = 0; i < noutputs; i++) {
+ if (dest == outputs[i]->dest &&
+ (dest != VIR_LOG_TO_FILE || STREQ(outputs[i]->name, name)))
STREQ_NULLABLE would I believe remove the need for the VIR_LOG_TO_FILE
check...
John
+ return i;
+ }
+
+ return -1;
+}
[...]