From 88f0fff09076b21e52badfad0d70866379759b64 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Fri, 8 Jun 2007 14:01:04 +0000 Subject: [PATCH] git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPCR/branches/refactoring@55 60f365c0-8329-0410-b2a4-ec073aeeaa1d --- src/ecogrep.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ecogrep.c b/src/ecogrep.c index 6d0704c..04c0b77 100644 --- a/src/ecogrep.c +++ b/src/ecogrep.c @@ -190,12 +190,13 @@ int main(int argc, char **argv){ /** * try to get the database name from environment variable * if no database name specified in the -d option - - if (!database && getenv("ECOPCRDB")) + */ + if (database == NULL) + { database = getenv("ECOPCRDB"); - else - errflag++; - */ + if (database == NULL) + errflag++; + } /** * check everything required is provided