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
Fix comparison of array to NULL
[alexxy/gromacs.git]
/
src
/
gromacs
/
gmxlib
/
gmx_detect_hardware.c
diff --git
a/src/gromacs/gmxlib/gmx_detect_hardware.c
b/src/gromacs/gmxlib/gmx_detect_hardware.c
index 9aa1105bb3193e79912e57e8aa9b45e714356b6f..7750b25689f9982df61440b822acb1cb4e5c28d3 100644
(file)
--- a/
src/gromacs/gmxlib/gmx_detect_hardware.c
+++ b/
src/gromacs/gmxlib/gmx_detect_hardware.c
@@
-580,7
+580,7
@@
static void gmx_detect_gpus(FILE *fplog, const t_commrec *cr)
if (detect_cuda_gpus(&hwinfo_g->gpu_info, detection_error) != 0)
{
- if (detection_error
!= NULL && detection_error
[0] != '\0')
+ if (detection_error[0] != '\0')
{
sprintf(sbuf, ":\n %s\n", detection_error);
}