diff --git a/cv1/program.c b/cv1/program.c index a251ef6..914a534 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -39,7 +39,7 @@ int main() printf("Zadaj␣jedalny␣listok:\n"); do p=fgets(r, 299, stdin); - while(p!=NULL || p[0]=='\n'); + while(p!=NULL && p[0]=='\n'); if(p==NULL) break; if(scanf("%f", &price)!=1)