Projet

Général

Profil

Révision 2cdb57ae

ID2cdb57aec2f8dae09a36e0b5113a668a67a1b671
Parent 773d5ed4
Enfant f3ae51d9

Ajouté par Steve Schnepp il y a presque 13 ans

mnc: handle empty input lines

Voir les différences:

tools/munin-node-c/main.c
63 63
		cmd = strtok(line, " \t\n");
64 64
		arg = strtok(line, " \t\n");
65 65

  
66
		if (strlen(cmd) == 0) {
66
		if (!cmd || strlen(cmd) == 0) {
67 67
		} else if (strcmp(cmd, "version") == 0) {
68 68
			printf("munin c node version: %s\n", VERSION);
69 69
		} else if (strcmp(cmd, "nodes") == 0) {

Formats disponibles : Unified diff