biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge remote-tracking branch 'origin/release-4-6'
[alexxy/gromacs.git]
/
src
/
gromacs
/
gmxlib
/
oenv.c
diff --git
a/src/gromacs/gmxlib/oenv.c
b/src/gromacs/gmxlib/oenv.c
index edbc6328fbe7f83829fa8bcf343b8dcf903f8f98..015b25b94d6bbdc67f6f4dd4b3a3a0def4d372d7 100644
(file)
--- a/
src/gromacs/gmxlib/oenv.c
+++ b/
src/gromacs/gmxlib/oenv.c
@@
-39,6
+39,7
@@
#include <ctype.h>
+#include <assert.h>
#include "sysstuff.h"
#include "macros.h"
#include "string2.h"
@@
-114,8
+115,10
@@
void output_env_init(output_env_t *oenvp, int argc, char *argv[],
oenv->program_name=NULL;
if (argv)
+ {
argvzero=argv[0];
-
+ assert(argvzero);
+ }
/* set program name */
if (argvzero)
{