]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/getstarg.c
Update copyright notice
[empserver] / src / lib / subs / getstarg.c
index 1e7a4a2e2b848bc3e8a3ce9f65026f5d4945d891..c72f00618f802a809731502e84a38cc0972a2a5e 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -46,9 +46,9 @@ char *
 getstarg(char *input, char *prompt, char *buf)
 {
     *buf = '\0';
-    if (input == 0 || *input == 0) {
-       if (getstring(prompt, buf) == 0)
-           return 0;
+    if (!input || !*input) {
+       if (!getstring(prompt, buf))
+           return NULL;
     } else {
        strcpy(buf, input);
     }