/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
* natarg.c: Return countr # given country name or country #
*
* Known contributors to this file:
- * Markus Armbruster, 2006
+ * Markus Armbruster, 2006-2009
*/
#include <config.h>
struct natstr *np;
arg = getstarg(arg, prompt, buf);
- if (arg == 0 || *arg == 0)
+ if (!arg || !*arg)
return NULL;
if (isdigit(*arg))
n = atoi(arg);